mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-24 00:05:24 +00:00
OATHUserRepository: Minor cleanup/fixes
* Don't use namespace on already imported Manager class * Fix oauth mention to oathauth Follows-Up: I6aa69c089340434737b55201b80398708a70c355 Change-Id: Id43fc3cffee589c6d04281edeb778c011dfecda4
This commit is contained in:
parent
07b96202d9
commit
1559e32ae9
|
@ -92,7 +92,7 @@ class OATHUserRepository implements LoggerAwareInterface {
|
|||
foreach ( $res as $row ) {
|
||||
if ( $module && $row->oat_name !== $module->getName() ) {
|
||||
// Not supported by current application-layer code.
|
||||
throw new RuntimeException( "user {$uid} has multiple different oauth modules defined" );
|
||||
throw new RuntimeException( "user {$uid} has multiple different oathauth modules defined" );
|
||||
}
|
||||
|
||||
if ( !$module ) {
|
||||
|
@ -169,7 +169,7 @@ class OATHUserRepository implements LoggerAwareInterface {
|
|||
'clientip' => $clientInfo,
|
||||
'oathtype' => $user->getModule()->getName(),
|
||||
] );
|
||||
Notifications\Manager::notifyEnabled( $user );
|
||||
Manager::notifyEnabled( $user );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue