projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c7bd80d
)
Pman/Login.php
author
Alan Knowles
<alan@roojs.com>
Fri, 12 Oct 2018 02:20:29 +0000
(10:20 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 12 Oct 2018 02:20:29 +0000
(10:20 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
f0c30aa
..
72ce4fe
100644
(file)
--- a/
Pman/Login.php
+++ b/
Pman/Login.php
@@
-328,9
+328,11
@@
class Pman_Login extends Pman
if(
!empty($u->oath_key) &&
- empty($_REQUEST['oath_password']) &&
- !$u->checkTwoFactorAuthentication($_REQUEST['oath_password'])
- ){
+ (
+ empty($_REQUEST['oath_password']) ||
+ !$u->checkTwoFactorAuthentication($_REQUEST['oath_password'])
+ )
+ ) {
$this->jerror('LOGIN-BAD', 'You typed the wrong Username or Password (3)');
exit;
}