mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-09-23 18:30:39 +00:00
OATHUser: Drop getFirstKey()
Bug: T242031 Depends-On: Id57dd0f37a9f90a492770f6a1de3d8a2f96df944 Depends-On: Iad31b9795eca700b15f6233749846f9f8ce5e89b Change-Id: I7bbf5f54e97a563940fedaf67904730fac918af4
This commit is contained in:
parent
0dad2c7031
commit
06d3bdafc7
|
@ -87,17 +87,6 @@ class OATHUser {
|
||||||
return $this->keys;
|
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.
|
* Set the key associated with this user.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue