projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61b0512
)
DataObjects/Core_person.php
author
john
<john@roojs.com>
Wed, 10 Oct 2018 04:01:19 +0000
(12:01 +0800)
committer
john
<john@roojs.com>
Wed, 10 Oct 2018 04:01:19 +0000
(12:01 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
a747d18
..
3d8ed71
100644
(file)
--- a/
DataObjects/Core_person.php
+++ b/
DataObjects/Core_person.php
@@
-1447,13
+1447,11
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
function getOathKey()
{
- $hex = bin2hex(openssl_random_pseudo_bytes(10));
-
require 'Base32.php';
$base32 = new Base32();
- return $base32->base32_encode(
$hex
);
+ return $base32->base32_encode(
bin2hex(openssl_random_pseudo_bytes(10))
);
}
function generateQRCode()