admin 5/31/2021 | |
We do not have this kind of functinality right now. It should be possible with the help of some custom coding. You can implement BeforeLogin event where you can craft your own SQL statements to validate what user entered against the database. If it passes the check you can use Security::loginAs() to log the user in and redirect them to the landing page. |
HJB 6/1/2021 | |
Login with username OR e-mail address ... for inspiration purposes only ... |
P
|
pinoyoutdoor author 6/3/2021 |
thanks for guide...hopefully I can be succesfull.... |
A
|
acpan 6/3/2021 |
I did this before, using the PHPRunner's Security API and DB API as what mentioned by admin. Here's the sample code, assuming, user table has fields: user_id, password, email. Then before login successful event: // $username is PHPRunner's system varaible that captures what user enters I have simplified a little to aid your understanding, my original version have a few more lines that deals with password matching with bycrypt hope it helps. |