Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public function allowTemporaryLogin($userId, $email, $expirationTime = '+1 hour') { $token = Basic::randomizer(80); dibi::insert(self::TEMPORARY_LOGIN_TABLE, array('users_id' => $userId, 'email' => $email, 'token' => $token, 'expire' => dibi::datetime(strtotime($expirationTime))))->execute(); return $token; }