Good day!
I need to make an authorization on the site. E-mail + password, as well as password recovery, how to properly authorize by e-mail (just always find only the login) and password recovery.
Good day!
I need to make an authorization on the site. E-mail + password, as well as password recovery, how to properly authorize by e-mail (just always find only the login) and password recovery.
it is not clear how to do authorization on soap
just like by login, just use not Lugin, but email (everything is simple), and change the data entry check in the login field to check the soap
function email($input) { $check = '/^[a-z0-9!#$%&*+-=?^_`{|}~]+(\.[a-z0-9!#$%&*+-=?^_`{|}~]+)*'; $check.= '@([-a-z0-9]+\.)+([az]{2,3}'; $check.= '|info|aero|name)$/ix'; if (preg_match($check, $input)) { return false; } else { return true; } }
output of your page
as I understand it is a profile, right? everything is simple here, just output data about the user from the database, create a link for the edit form
in order to organize a closed zone, use the sessions and cookies
I need a ready solution whenever possible
I think that for you to write here, no one, nothing will be, there is a little different than the site of freelancers. ideas you gave, there will be some specific questions on the implementation of authorization, we will always answer
Then the question is to recover the password? how to do?
We send a password for this soap
// send a password to this soap
mail ($ mail, "Request to recover password", "Hello $ login is your new password: $ string");
Source: https://ru.stackoverflow.com/questions/73103/
All Articles