Fix some comments

* Spelling in OATHAuthHooks::onRegistration comment
* Remove incorrect comment for OATHAuth::__construct
* Spelling in TOTPAuthenticationRequest class phpdoc

Change-Id: Iaf670a1b86e82b4684489371c8152b8055bff90e
This commit is contained in:
Bryan Davis 2016-09-28 16:31:53 -06:00
parent 0e37c6ca1f
commit 03d890f3da
3 changed files with 5 additions and 5 deletions

View file

@ -38,8 +38,8 @@ class OATHAuthHooks {
$wgAuthManagerAutoConfig['secondaryauth'] += [
TOTPSecondaryAuthenticationProvider::class => [
'class' => TOTPSecondaryAuthenticationProvider::class,
// after non-interactive prroviders but before the ones that run after a
// succesful authentication
// after non-interactive providers but before the ones
// that run after a successful authentication
'sort' => 50,
]
];

View file

@ -13,7 +13,6 @@ class OATHUser {
private $key;
/**
* Constructor. Can't be called directly. Call one of the static NewFrom* methods
* @param User $user
* @param OATHAuthKey $key
*/

View file

@ -3,8 +3,9 @@
use MediaWiki\Auth\AuthenticationRequest;
/**
* AuthManager value object for the TOTP second factor of an authentication: a pseudorandom token
* that is generated from the current time indepdendently by the server and the client.
* AuthManager value object for the TOTP second factor of an authentication:
* a pseudorandom token that is generated from the current time independently
* by the server and the client.
*/
class TOTPAuthenticationRequest extends AuthenticationRequest {
public $OATHToken;