mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-14 22:12:18 -06:00
feat: Implement switching between accounts (multi user support), still WIP
This commit is contained in:
19
lib/features/login/model/client_certificate_form_model.dart
Normal file
19
lib/features/login/model/client_certificate_form_model.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:typed_data';
|
||||
|
||||
class ClientCertificateFormModel {
|
||||
static const bytesKey = 'bytes';
|
||||
static const passphraseKey = 'passphrase';
|
||||
|
||||
final Uint8List bytes;
|
||||
final String? passphrase;
|
||||
|
||||
ClientCertificateFormModel({required this.bytes, this.passphrase});
|
||||
|
||||
ClientCertificateFormModel copyWith({Uint8List? bytes, String? passphrase}) {
|
||||
return ClientCertificateFormModel(
|
||||
bytes: bytes ?? this.bytes,
|
||||
passphrase: passphrase ?? this.passphrase,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user