title | footer |
---|---|
\leantime\domain\repositories\auth |
false |
- Full name:
\leantime\domain\repositories\auth
public auth::__construct(): mixed
Return Value:
logout - destroy sessions and cookies
public auth::invalidateSession(mixed $sessionId): bool
Parameters:
Parameter | Type | Description |
---|---|---|
sessionId |
mixed |
Return Value:
checkSessions - check all sessions in the database and unset them if necessary
private auth::invalidateExpiredUserSessions(): void
Return Value:
getUserByLogin - Check login data and returns user if correct
public auth::getUserByLogin( $username, $password): bool
Parameters:
Parameter | Type | Description |
---|---|---|
username |
**** | |
password |
**** |
Return Value:
updateSession - Update the session time by sessionId
public auth::updateUserSession(mixed $userId, $sessionid, $time): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
userId |
mixed | |
sessionid |
**** | |
time |
**** |
Return Value:
validateResetLink - validates that the password reset link belongs to a user account in the database
public auth::validateResetLink(mixed $hash): bool
Parameters:
Parameter | Type | Description |
---|---|---|
hash |
mixed |
Return Value:
getUserByInviteLink - gets an invited user by invite code
public auth::getUserByInviteLink(mixed $hash): array|bool
Parameters:
Parameter | Type | Description |
---|---|---|
hash |
mixed |
Return Value:
public auth::setPWResetLink(mixed $username, mixed $resetLink): bool
Parameters:
Parameter | Type | Description |
---|---|---|
username |
mixed | |
resetLink |
mixed |
Return Value:
public auth::changePW(mixed $password, mixed $hash): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
password |
mixed | |
hash |
mixed |
Return Value:
Automatically generated from source code comments on 2023-02-28 using phpDocumentor