Docs Goabase

Auth
in package
uses TraitDataWrite

Table of Contents

Properties

$dataWrite  : DataWrite
$input  : Input

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

Methods

__construct()

public __construct() : mixed

delAuth()

Delete auth / Logout

public delAuth() : void
Tags
throws
RandomException

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
Tags
throws
RandomException

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
throws
RandomException
throws
RandomException
Return values
bool

setLogout()

Set Logout, deletes Session

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

getAutoLogin()

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

        
On this page

Search results