Grant admin for first user on SSO/OIDC registration path. (fixes #315)
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -479,6 +479,7 @@ async fn register_user(
|
|||||||
password: Some("*"),
|
password: Some("*"),
|
||||||
origin: Some("sso"),
|
origin: Some("sso"),
|
||||||
displayname: userinfo.name.as_deref(),
|
displayname: userinfo.name.as_deref(),
|
||||||
|
grant_first_user_admin: true,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
})
|
})
|
||||||
.await?;
|
.await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user