projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a00a662
)
DataObjects/Core_person.php
author
edward
<edward@roojs.com>
Thu, 2 Nov 2017 11:23:51 +0000
(19:23 +0800)
committer
edward
<edward@roojs.com>
Thu, 2 Nov 2017 11:23:51 +0000
(19:23 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
a612596
..
0fcab71
100644
(file)
--- a/
DataObjects/Core_person.php
+++ b/
DataObjects/Core_person.php
@@
-1325,13
+1325,7
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
function generateOathKey()
{
- require_once 'Text/Password.php';
-
-// $key = strtr(ucfirst(Text_Password::create(20)).ucfirst(Text_Password::create(20)), array(
-// "a"=>"4", "e"=>"3", "i"=>"1", "o"=>"0", "s"=>"5", "t"=>"7"));
-
$hex = bin2hex(openssl_random_pseudo_bytes(10));
- print_R($hex);exit;
$this->oath_key = $hex;
return $this->oath_key;