mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-12-01 03:16:24 +00:00
Merge "Minor code style changes"
This commit is contained in:
commit
dccf665960
|
@ -151,7 +151,9 @@ class TOTPKey implements IAuthKey {
|
||||||
$retval = false;
|
$retval = false;
|
||||||
$results = HOTP::generateByTimeWindow(
|
$results = HOTP::generateByTimeWindow(
|
||||||
Base32::decode( $this->secret['secret'] ),
|
Base32::decode( $this->secret['secret'] ),
|
||||||
$this->secret['period'], -$wgOATHAuthWindowRadius, $wgOATHAuthWindowRadius
|
$this->secret['period'],
|
||||||
|
-$wgOATHAuthWindowRadius,
|
||||||
|
$wgOATHAuthWindowRadius
|
||||||
);
|
);
|
||||||
|
|
||||||
// Remove any whitespace from the received token, which can be an intended group seperator
|
// Remove any whitespace from the received token, which can be an intended group seperator
|
||||||
|
|
Loading…
Reference in a new issue