mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-20 14:20:14 +00:00
Inactive users should not still be able to access their calendars.
This commit is contained in:
parent
dca93db8ed
commit
8958e99d37
@ -233,8 +233,8 @@ class HTTPAuthSession {
|
||||
}
|
||||
|
||||
if ( $usr = getUserByName($username) ) {
|
||||
dbg_error_log( "BasicAuth", ":CheckPassword: Name:%s, Pass:%s, File:%s", $username, $password, $usr->password );
|
||||
if ( session_validate_password( $password, $usr->password ) ) {
|
||||
dbg_error_log( "BasicAuth", ":CheckPassword: Name:%s, Pass:%s, File:%s, Active:%s", $username, $password, $usr->password, ($usr->active?'Yes':'No') );
|
||||
if ( $usr->active && session_validate_password( $password, $usr->password ) ) {
|
||||
return $usr;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user