Hi AllI have a table: participants for the login process
id : Int 11
users :V 25
password : V50
status : int 1 (1 active, 2 passive)I usually login using only the user and password, and the password is not encrypted.
How to login with user and password and status = 1 (active)
How to login with user and password and status = 1 (active)
You may check the value of your status field in User_LoggingIn server event based on the $usr and $pwd params in that event, and if it contains 2, display the error message by using setFailureMessage method of current page, and then return false to cancel the login. Otherwise, if it contains 1 in the status field, then return true to allow the user logged in.
I set it in Login Pane > User_LoggingIn$status = $rsold[“status”];if($status==1){
return TRUE;
}else{
return FALSE;
}but failed… error. How to make that logic?
Thank You