* Etemplate: Fix error "Etemplate\Api\Auth not found" happening while trying to login

This commit is contained in:
Hadi Nategh 2017-01-05 15:09:07 +01:00
parent 14bd6785d2
commit e49a0f014e

View File

@ -363,7 +363,7 @@ class Request
// generate random token (using oppenssl if available otherwise mt_rand based Auth::randomstring)
$token = function_exists('openssl_random_pseudo_bytes') ?
base64_encode(openssl_random_pseudo_bytes(32)) :
Auth::randomstring(44);
\EGroupware\Api\Auth::randomstring(44);
return $GLOBALS['egw_info']['flags']['currentapp'].'_'.$userID.'_'.$token;
}