mirror of
https://github.com/nextcloud/server.git
synced 2026-04-25 16:19:06 -04:00
Add a comment explaining how Helper::loginName2UserName can work
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
2a0b2250d2
commit
5f65d5a58d
1 changed files with 2 additions and 2 deletions
|
|
@ -275,10 +275,10 @@ class Helper {
|
|||
* listens to a hook thrown by server2server sharing and replaces the given
|
||||
* login name by a username, if it matches an LDAP user.
|
||||
*
|
||||
* @param array $param
|
||||
* @param array $param contains a reference to a $uid var under 'uid' key
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function loginName2UserName($param) {
|
||||
public static function loginName2UserName($param): void {
|
||||
if (!isset($param['uid'])) {
|
||||
throw new \Exception('key uid is expected to be set in $param');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue