@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | // check for previous auth |
160 | 160 | if (!is_null($key_id) && in_array($key_id, $attrs[$this->keyIdAttr], true)) { |
161 | 161 | // we were already authenticated using a valid yubikey |
162 | - Logger::info('Reusing previous YubiKey authentication with key "' . $key_id . '".'); |
|
162 | + Logger::info('Reusing previous YubiKey authentication with key "'.$key_id.'".'); |
|
163 | 163 | return; |
164 | 164 | } |
165 | 165 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | |
213 | 213 | // obtain the identity of the yubikey |
214 | 214 | $kid = substr($otp, 0, -32); |
215 | - Logger::debug('Verifying Yubikey ID "' . $kid . '"'); |
|
215 | + Logger::debug('Verifying Yubikey ID "'.$kid.'"'); |
|
216 | 216 | |
217 | 217 | // verify the OTP against the API |
218 | 218 | $api = new \Yubikey\Validate($cfg['apiKey'], $cfg['apiClient']); |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | |
222 | 222 | // verify the identity corresponds to this user |
223 | 223 | if (!in_array($kid, $cfg['keyIDs'], true)) { |
224 | - Logger::warning('The YubiKey "' . $kid . '" is not valid for this user.'); |
|
224 | + Logger::warning('The YubiKey "'.$kid.'" is not valid for this user.'); |
|
225 | 225 | Logger::stats('yubikey:otp: invalid YubiKey.'); |
226 | 226 | return false; |
227 | 227 | } |
@@ -239,10 +239,10 @@ discard block |
||
239 | 239 | $cfg['self'], |
240 | 240 | 'logoutHandler' |
241 | 241 | ); |
242 | - Logger::info('Successful authentication with YubiKey "' . $kid . '".'); |
|
242 | + Logger::info('Successful authentication with YubiKey "'.$kid.'".'); |
|
243 | 243 | return true; |
244 | 244 | } |
245 | - Logger::warning('Couldn\'t successfully authenticate YubiKey "' . $kid . '".'); |
|
245 | + Logger::warning('Couldn\'t successfully authenticate YubiKey "'.$kid.'".'); |
|
246 | 246 | return false; |
247 | 247 | } |
248 | 248 | |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | { |
257 | 257 | $session = Session::getSessionFromRequest(); |
258 | 258 | $keyid = $session->getData('yubikey:auth', $this->authid); |
259 | - Logger::info('Removing valid YubiKey authentication with key "' . $keyid . '".'); |
|
259 | + Logger::info('Removing valid YubiKey authentication with key "'.$keyid.'".'); |
|
260 | 260 | $session->deleteData('yubikey:auth', $this->authid); |
261 | 261 | } |
262 | 262 | } |