projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61e0f7c
)
DataObjects/Core_person.php
author
edward
<edward@roojs.com>
Thu, 2 Nov 2017 12:03:59 +0000
(20:03 +0800)
committer
edward
<edward@roojs.com>
Thu, 2 Nov 2017 12:03:59 +0000
(20:03 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
d41bc71
..
62a09de
100644
(file)
--- a/
DataObjects/Core_person.php
+++ b/
DataObjects/Core_person.php
@@
-1358,13
+1358,13
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
{
require_once 'System.php';
- if (!System::which('oathtool')) {
+ $oathtool = System::which('oathtool');
+
+ if (!$oathtool) {
return false;
}
- $oathtool = System::which('oathtool');
-
- $cmd = "";
+ $cmd = "{$oathtool} --totp --base32 {$this->oath_key}";
print_R($test);exit;
}