1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-10-24 20:36:06 +02:00

Extract class 'Base64' into external library

This commit is contained in:
Marco
2017-07-24 21:56:35 +02:00
parent b1ac859fd2
commit c2ab825354
5 changed files with 47 additions and 37 deletions

View File

@@ -8,6 +8,7 @@
namespace Delight\Auth;
use Delight\Base64\Base64;
use Delight\Db\PdoDatabase;
use Delight\Db\PdoDsn;
use Delight\Db\Throwable\Error;
@@ -45,7 +46,7 @@ abstract class UserManager {
$data = openssl_random_pseudo_bytes($bytes);
// return the Base64-encoded result
return Base64::encode($data, true);
return Base64::encodeUrlSafe($data);
}
/**