BookStack\Services\EmailConfirmationService::getToken PHP Метод

getToken() защищенный Метод

Creates a unique token within the email confirmation database.
protected getToken ( ) : string
Результат string
    protected function getToken()
    {
        $token = str_random(24);
        while ($this->db->table('email_confirmations')->where('token', '=', $token)->exists()) {
            $token = str_random(25);
        }
        return $token;
    }