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.

  • What does soap authorization mean? 1) that is, for the place of login soap so? 2) or does it just require activation by soap? 3) And clarify that you want theory or ready-made code? - FreeMast
  • for the place of the login soap - kira
  • The registration form consists of the following fields: - First name - Last name - email - Password - Confirm password. Authorization form: - Email - Password After successful authorization in the application header there should be a greeting (Hello, name!) And a link to logout. The “My Account” page displays the data of the current user, which he indicated during registration. It should be possible to edit this data. This page is available only after authorization. The main tasks to be performed are: - Registration form - Authorization form - “My account” Additional: - Password recovery - Avatar upload - kira
  • Clearly, tell me what is incomprehensible to you? Or do you need a turnkey solution? - FreeMast
  • I need as far as possible a ready-made solution, but it is not clear how to make authorization on soap, the output of my page. - kira

1 answer 1

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?

  1. Create a form where the user will enter their login to recover
  2. Check if there is a user in the database
  3. If the user is in the database, then we generate a new password.
  4. For security, I advise you to keep your passwords encrypted. Therefore, we overtake in md5 hash.
  5. We rewrite the password to the database already hashed
  6. 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");

  • Then the question is to recover the password? how to do? - kira
  • replied above - FreeMast