mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
chore: Implement a fake response for testing (#202)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
5b781cf642
commit
d60fec405a
6 changed files with 729 additions and 27 deletions
|
|
@ -50,9 +50,9 @@ class AuthNotifier extends StateNotifier<LoginScreenModel> {
|
|||
state = state.copyWith(loading: true);
|
||||
clearAllProviders();
|
||||
var response = await api.usersAuthenticateByNamePost(userName: userName, password: password);
|
||||
var serverResponse = await api.systemInfoPublicGet();
|
||||
CredentialsModel credentials = state.tempCredentials;
|
||||
if (response.isSuccessful && (response.body?.accessToken?.isNotEmpty ?? false)) {
|
||||
var serverResponse = await api.systemInfoPublicGet();
|
||||
credentials = credentials.copyWith(
|
||||
token: response.body?.accessToken ?? "",
|
||||
serverId: response.body?.serverId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue