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:
Reedy 2023-11-20 22:09:51 +00:00
parent 07b96202d9
commit 1559e32ae9

View file

@ -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 );
}
}