step 9 : listing history scan dan pull to refresh, perbaikan auth model add host
This commit is contained in:
@@ -11,10 +11,11 @@ class AuthRepository extends BaseRepository {
|
||||
}) async {
|
||||
final param = {"username": username, "password": password};
|
||||
// final service = "${Constant.baseUrl}xauth/login";
|
||||
final service = "http://${host}/one-api/v1/system/auth/login";
|
||||
final service = "http://$host/one-api/v1/system/auth/login";
|
||||
final resp = await post(param: param, service: service);
|
||||
|
||||
final result = AuthModel(
|
||||
host: host,
|
||||
token: resp["data"]["token"],
|
||||
model: UserModel.fromJson(resp["data"]["user"]),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user