Auth
in package
uses
TraitDataWrite
Table of Contents
Properties
Methods
- __construct() : mixed
- delAuth() : void
- Delete auth / Logout
- getDataWriteInstance() : DataWrite
- initAutoLogin() : void
- 1 usage The login and remember
- isBanned() : int
- Return 1 if member is banned, 0 if not
- setAuth() : bool
- Will be called on each request, so pwhash is always set new Feb 2018: Sets the cookie for the login without any table insert Mai 2019: Change to table insert
- setLogout() : void
- Set Logout, deletes Session
- getAutoLogin() : array<string|int, mixed>
Properties
$dataWrite
private
DataWrite
$dataWrite
$input
private
Input
$input
Methods
__construct()
public
__construct() : mixed
delAuth()
Delete auth / Logout
public
delAuth() : void
Tags
getDataWriteInstance()
public
getDataWriteInstance() : DataWrite
Return values
DataWriteinitAutoLogin()
1 usage The login and remember
public
initAutoLogin([int $bDisableTimelog = 0 ]) : void
User: amalesh Date: 12.04.16 Time: 15:16
Parameters
- $bDisableTimelog : int = 0
Tags
isBanned()
Return 1 if member is banned, 0 if not
public
isBanned() : int
Mit dieser Funktion wird zentral geprüft, ob ein Member gebannt ist oder nicht. Wenn nicht, wird der Wert in den Cache geschrieben, um nicht gleich erneut von der DB erfragt werden zu müssen
Return values
int —- public_uid
setAuth()
Will be called on each request, so pwhash is always set new Feb 2018: Sets the cookie for the login without any table insert Mai 2019: Change to table insert
public
setAuth([array<string|int, mixed> $saUser = [] ]) : bool
Parameters
- $saUser : array<string|int, mixed> = []
-
pwhash als md5 statt zufallswert
Tags
Return values
boolsetLogout()
Set Logout, deletes Session
public
setLogout([int $bDelAllCookies = 0 ]) : void
Parameters
- $bDelAllCookies : int = 0
Tags
getAutoLogin()
private
getAutoLogin(string $token, string $md5PW) : array<string|int, mixed>
Parameters
- $token : string
- $md5PW : string