projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dc98b7
)
DataObjects/Core_person.php
author
edward
<edward@roojs.com>
Thu, 2 Nov 2017 11:55:13 +0000
(19:55 +0800)
committer
edward
<edward@roojs.com>
Thu, 2 Nov 2017 11:55:13 +0000
(19:55 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
c20675b
..
1628b04
100644
(file)
--- a/
DataObjects/Core_person.php
+++ b/
DataObjects/Core_person.php
@@
-1356,6
+1356,10
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
function checkTwoFactorAuthentication($val)
{
+ if (!System::which('oathtool')) {
+ return false;
+ }
+
$test = exec('whoami');
print_R($test);exit;
}