You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to show the login error for user if they entered invalid password or etc.
I want to make my login page more interactive and informative by showing the user if they entered the wrong password, or their account is not exist. How can i retrieve the error code from ldap records? currently I am using Auth::validate() to validate the credentials.
below is my code for loginController
public function login(Request $request)
{
$credentials = [
'samaccountname' => $request->username,
'password' => $request->password,
];
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wanted to show the login error for user if they entered invalid password or etc.
I want to make my login page more interactive and informative by showing the user if they entered the wrong password, or their account is not exist. How can i retrieve the error code from ldap records? currently I am using Auth::validate() to validate the credentials.
below is my code for loginController
public function login(Request $request)
{
$credentials = [
'samaccountname' => $request->username,
'password' => $request->password,
];
Beta Was this translation helpful? Give feedback.
All reactions