To achieve the site background login, considering the need to add a registration page, in the case of only one permission, directly give an administrator account to allow users to log in
Background login Feature Implementation
1, Form form submission
Not suitable for
Because if the account does not exist, the wrong password and other anomalies, the front desk can not obtain a callback function to remind the user.
2. Ajax Submissions
For
In this case, you can not write the form tag, directly using AJAX to submit the user name, password to background verification, the results of the validation returned AJAX callback function.
1)
Verification success, skip to the background login home page, such as using laravel, need to configure a new route to the background login home
2)
Validation failed
1) There is no password
2)) account does not exist
Website Background Login