Skip to content

Commit

Permalink
♻️ (AccountKit): Remove commented code and add logs using LogKit
Browse files Browse the repository at this point in the history
  • Loading branch information
macteuts committed Dec 8, 2023
1 parent 0885bd0 commit 32fbaca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class AuthManager: ObservableObject {
do {
try auth.signOut()
companyAuthenticationState = .loggedOut
print("Company was successfully signed out.")
log.notice("Company was successfully signed out. 🙋‍♂️")
} catch let signOutError {
errorMessage = signOutError.localizedDescription
}
Expand Down Expand Up @@ -156,7 +156,7 @@ class AuthManager: ObservableObject {
private func handleUserUpdate(operation: FirebaseAuthenticationOperation) -> (AuthDataResult) -> Void {
{ [weak self] result in
self?.companyAuthenticationState = .loggedIn
print("Company \(result.user.uid) \(operation.rawValue) successfully.")
log.notice("🎉 Company \(result.user.uid) \(operation.rawValue) successfully.")
if case .signIn = operation {
self?.checkAuthenticationStatus()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
import Foundation

struct CompanyCredentialsViewModel {
// var id = UUID().uuidString
var mail: String = ""
var password: String = ""
// var teachers: [Teacher] = []
// var users: [User] = []
var confirmPassword: String = ""

// MARK: - Validation Checks
Expand Down

0 comments on commit 32fbaca

Please sign in to comment.