Models now handle sign up presentations

This commit is contained in:
Stuart Breckenridge
2020-12-06 07:58:20 +08:00
parent 56f26c0c3d
commit 32506b25ae
12 changed files with 123 additions and 49 deletions

View File

@@ -12,7 +12,7 @@ import RSCore
import RSWeb
import Secrets
class AddReaderAPIViewModel: ObservableObject {
class AddReaderAPIViewModel: ObservableObject, AddAccountSignUp {
@Published var isAuthenticating: Bool = false
@Published var accountUpdateError: AccountUpdateErrors = .none
@Published var showError: Bool = false
@@ -20,6 +20,7 @@ class AddReaderAPIViewModel: ObservableObject {
@Published var password: String = ""
@Published var apiUrl: String = ""
@Published var canDismiss: Bool = false
@Published var showPassword: Bool = false
func authenticateReaderAccount(_ accountType: AccountType) {
isAuthenticating = true