fix failing to register new appservice accounts
this is such a terribly named enum field. Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -84,7 +84,7 @@ where
|
|||||||
appservice_registration
|
appservice_registration
|
||||||
{
|
{
|
||||||
match metadata.authentication {
|
match metadata.authentication {
|
||||||
AuthScheme::AccessToken | AuthScheme::AppserviceToken => {
|
AuthScheme::AccessToken => {
|
||||||
let user_id = query_params.user_id.map_or_else(
|
let user_id = query_params.user_id.map_or_else(
|
||||||
|| {
|
|| {
|
||||||
UserId::parse_with_server_name(
|
UserId::parse_with_server_name(
|
||||||
@@ -105,7 +105,7 @@ where
|
|||||||
// TODO: Check if appservice is allowed to be that user
|
// TODO: Check if appservice is allowed to be that user
|
||||||
(Some(user_id), None, None, true)
|
(Some(user_id), None, None, true)
|
||||||
},
|
},
|
||||||
AuthScheme::AccessTokenOptional => {
|
AuthScheme::AccessTokenOptional | AuthScheme::AppserviceToken => {
|
||||||
let user_id = query_params.user_id.map_or_else(
|
let user_id = query_params.user_id.map_or_else(
|
||||||
|| {
|
|| {
|
||||||
UserId::parse_with_server_name(
|
UserId::parse_with_server_name(
|
||||||
|
|||||||
Reference in New Issue
Block a user