mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 09:35:12 +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) {
|
if (supportsSso) {
|
||||||
_rawLoginTypes = await client.request(
|
_rawLoginTypes = await client.request(
|
||||||
RequestType.GET,
|
RequestType.GET,
|
||||||
'/client/r0/login',
|
'/client/v3/login',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -121,7 +121,7 @@ class HomeserverPickerController extends State<HomeserverPicker> {
|
||||||
: 'http://localhost:3001//login';
|
: 'http://localhost:3001//login';
|
||||||
|
|
||||||
final url = Matrix.of(context).getLoginClient().homeserver!.replace(
|
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},
|
queryParameters: {'redirectUrl': redirectUrl},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -227,7 +227,7 @@ class LoginController extends State<Login> {
|
||||||
context: context,
|
context: context,
|
||||||
future: () => Matrix.of(context).getLoginClient().request(
|
future: () => Matrix.of(context).getLoginClient().request(
|
||||||
RequestType.POST,
|
RequestType.POST,
|
||||||
'/client/r0/account/password',
|
'/client/v3/account/password',
|
||||||
data: data,
|
data: data,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue