mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
* removed stay logged in checkbox and made it enabled by default * adds padding to login button * removed all isSaveLogin * fix: logout would re-login with previous credential upon app restart --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
26 lines
461 B
Dart
26 lines
461 B
Dart
import 'package:hive/hive.dart';
|
|
|
|
part 'hive_saved_login_info.model.g.dart';
|
|
|
|
@HiveType(typeId: 0)
|
|
class HiveSavedLoginInfo {
|
|
@HiveField(0)
|
|
String email; // DEPRECATED
|
|
|
|
@HiveField(1)
|
|
String password; // DEPRECATED
|
|
|
|
@HiveField(2)
|
|
String serverUrl;
|
|
|
|
@HiveField(4, defaultValue: "")
|
|
String accessToken;
|
|
|
|
HiveSavedLoginInfo({
|
|
required this.email,
|
|
required this.password,
|
|
required this.serverUrl,
|
|
required this.accessToken,
|
|
});
|
|
}
|