mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 13:05:11 +00:00
fix: Update manual endpoints
This commit is contained in:
parent
46d9879a45
commit
e2a251b3fe
2 changed files with 3 additions and 3 deletions
|
@ -86,7 +86,7 @@ class HomeserverPickerController extends State<HomeserverPicker> {
|
|||
if (supportsSso) {
|
||||
_rawLoginTypes = await client.request(
|
||||
RequestType.GET,
|
||||
'/client/r0/login',
|
||||
'/client/v3/login',
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
|
@ -121,7 +121,7 @@ class HomeserverPickerController extends State<HomeserverPicker> {
|
|||
: 'http://localhost:3001//login';
|
||||
|
||||
final url = Matrix.of(context).getLoginClient().homeserver!.replace(
|
||||
path: '/_matrix/client/r0/login/sso/redirect${id == null ? '' : '/$id'}',
|
||||
path: '/_matrix/client/v3/login/sso/redirect${id == null ? '' : '/$id'}',
|
||||
queryParameters: {'redirectUrl': redirectUrl},
|
||||
);
|
||||
|
||||
|
|
|
@ -227,7 +227,7 @@ class LoginController extends State<Login> {
|
|||
context: context,
|
||||
future: () => Matrix.of(context).getLoginClient().request(
|
||||
RequestType.POST,
|
||||
'/client/r0/account/password',
|
||||
'/client/v3/account/password',
|
||||
data: data,
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue