mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-24 00:05:24 +00:00
Merge "OATHUser: Drop getFirstKey()"
This commit is contained in:
commit
3559c5d7cf
|
@ -87,17 +87,6 @@ class OATHUser {
|
|||
return $this->keys;
|
||||
}
|
||||
|
||||
/**
|
||||
* Useful for modules that operate on single-key premise,
|
||||
* as well as testing the key type, since the first key is(?)
|
||||
* necessarily the same type as others
|
||||
*
|
||||
* @return IAuthKey|null
|
||||
*/
|
||||
public function getFirstKey() {
|
||||
return $this->keys[0] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the key associated with this user.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue