UserModel::setTransientKey PHP Method

setTransientKey() public method

Set the TransientKey attribute on a user.
public setTransientKey ( integer $UserID, string $ExplicitKey = '' ) : string
$UserID integer
$ExplicitKey string
return string
    public function setTransientKey($UserID, $ExplicitKey = '')
    {
        $Key = $ExplicitKey == '' ? betterRandomString(16, 'Aa0') : $ExplicitKey;
        $this->saveAttribute($UserID, 'TransientKey', $Key);
        return $Key;
    }
UserModel