Skip to content

Commit

Permalink
Merge pull request #144 from Sopt-Mongle/feature/#141
Browse files Browse the repository at this point in the history
유저디폴트
  • Loading branch information
qodhrkawk committed Nov 15, 2020
2 parents 4e93292 + 5972640 commit 039d29c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Mongle/Mongle/Source/VCs/LogInVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ class LogInVC: UIViewController {

vcName.modalPresentationStyle = .fullScreen
if self.shouldBeDismissed {

self.dismiss(animated: true, completion: nil)
}
else{
Expand Down
2 changes: 2 additions & 0 deletions Mongle/Mongle/Source/VCs/SignUpEmailVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Mongle/Mongle/Source/VCs/UnderTabBarController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ class UnderTabBarController: UITabBarController {

@objc func makeThemeButtonAction(sender: UIButton?){
if UserDefaults.standard.string(forKey: "token") == "guest" {
hideSubMenus()
self.presentLoginRequestPopUp()
return
}
Expand Down
1 change: 1 addition & 0 deletions Mongle/Mongle/Source/VCs/WritingSentenceSecondVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class WritingSentenceSecondVC: UIViewController, BookSearchDataDelegate {

self.publisherTextField.text = book.bookPublisher


}


Expand Down

0 comments on commit 039d29c

Please sign in to comment.