diff --git a/Mongle/Mongle/Source/VCs/LogInVC.swift b/Mongle/Mongle/Source/VCs/LogInVC.swift index 22174e6..f2fed8b 100644 --- a/Mongle/Mongle/Source/VCs/LogInVC.swift +++ b/Mongle/Mongle/Source/VCs/LogInVC.swift @@ -537,6 +537,7 @@ class LogInVC: UIViewController { vcName.modalPresentationStyle = .fullScreen if self.shouldBeDismissed { + self.dismiss(animated: true, completion: nil) } else{ diff --git a/Mongle/Mongle/Source/VCs/SignUpEmailVC.swift b/Mongle/Mongle/Source/VCs/SignUpEmailVC.swift index 2ab0ba9..6779b2b 100644 --- a/Mongle/Mongle/Source/VCs/SignUpEmailVC.swift +++ b/Mongle/Mongle/Source/VCs/SignUpEmailVC.swift @@ -792,6 +792,8 @@ class SignUpEmailVC: UIViewController, UITextFieldDelegate{ guard let token = token as? String else { return } print(token) UserDefaults.standard.set(token, forKey: "token") + UserDefaults.standard.set(self.email, forKey: "email") + UserDefaults.standard.set(self.password, forKey: "password") // // self.view.window?.rootViewController?.dismiss(animated: false, completion: { // let sceneDelegate = UIApplication.shared.delegate as! SceneDelegate diff --git a/Mongle/Mongle/Source/VCs/UnderTabBarController.swift b/Mongle/Mongle/Source/VCs/UnderTabBarController.swift index d0eebd2..6e97381 100644 --- a/Mongle/Mongle/Source/VCs/UnderTabBarController.swift +++ b/Mongle/Mongle/Source/VCs/UnderTabBarController.swift @@ -402,6 +402,7 @@ class UnderTabBarController: UITabBarController { @objc func makeThemeButtonAction(sender: UIButton?){ if UserDefaults.standard.string(forKey: "token") == "guest" { + hideSubMenus() self.presentLoginRequestPopUp() return } diff --git a/Mongle/Mongle/Source/VCs/WritingSentenceSecondVC.swift b/Mongle/Mongle/Source/VCs/WritingSentenceSecondVC.swift index 501d189..51691cc 100644 --- a/Mongle/Mongle/Source/VCs/WritingSentenceSecondVC.swift +++ b/Mongle/Mongle/Source/VCs/WritingSentenceSecondVC.swift @@ -151,6 +151,7 @@ class WritingSentenceSecondVC: UIViewController, BookSearchDataDelegate { self.publisherTextField.text = book.bookPublisher + }