Docs Goabase

Auth
in package
uses TraitData, TraitDataWrite, TraitUser

Read onlyYes
FinalYes

Table of Contents

Properties

$data  : Data
$input  : Input

Methods

__construct()  : mixed
delAuth()  : void
Delete auth / Logout
getDataInstance()  : Data
getDataWriteInstance()  : DataWrite
getUserInstance()  : User
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

Methods

__construct()

public __construct(Input $input) : mixed
Parameters
$input : Input

delAuth()

Delete auth / Logout

public delAuth() : void

initAutoLogin()

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

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

Return values
bool

setLogout()

Set Logout, deletes Session

public setLogout([int $bDelAllCookies = 0 ]) : void
Parameters
$bDelAllCookies : int = 0

getAutoLogin()

private getAutoLogin(string $token, string $md5PW) : array<string|int, mixed>
Parameters
$token : string
$md5PW : string
Return values
array<string|int, mixed>

        
On this page

Search results