Skip to content

Swift Developer Blog

Learn Swift and App Development for iOS

  • Swift Blog
    • UITableView
    • UIImageView
    • UIScrollView
    • UIWebView
    • SubView
    • UIImagePickerController
    • UIPageViewController
    • UITabBarController
    • UIAlertController
    • UISegmentedControl
    • Xcode
    • Firebase
  • Video Tutorials
  • Code Examples
    • Code examples
    • Cheat Sheets
  • Resources
    • Swift Developer
  • Full stack
    • Developer Resources
    • Android & Kotlin
    • Java
    • RESTful Web Services
    • Amazon Web Services
    • Firebase with Kotlin
    • Firebase with Swift
    • Hibernate
    • Git
    • Design Patterns
  • About
  • Contact me
  • Home
  • User login and Registration with Swift
  • Password recovery/reset feature implementation with Swift and Parse
April 12, 2015 by Sergey Kargopolov 0 comments on "Password recovery/reset feature implementation with Swift and Parse"

Password recovery/reset feature implementation with Swift and Parse

In this video I am showing how to implement password recovery feature for Swift App that uses Parse for User login and Registration.

In this video I am implementing Password Recovery feature for the App I have created earlier. To see how I’ve implemented User Login and Registration UI, how to integrate Parse into your Swift app please watch Videos at the end of this blog post.

Below are the two main functions I used in my video:

recoverButtonTapped source cede


@IBAction func recoverButtonTapped(sender: AnyObject) {
let userEmail = userEmailTextField.textPFUser.requestPasswordResetForEmailInBackground(userEmail) {
(success:Bool, error:NSError?) -> Void inif(success)
{
let successMessage = “Email message was sent to you at \(userEmail)”
self.displayMessage(successMessage)
return
}
if(error != nil)
{
let errorMessage:String = error!.userInfo![“error”] as! String
self.displayMessage(errorMessage)
}
}
}

displayMessage source cede


func displayMessage(theMesssage:String)
{
// Display alert message with confirmation.
var myAlert = UIAlertController(title:"Alert", message:theMesssage, preferredStyle: UIAlertControllerStyle.Alert);let okAction = UIAlertAction(title:"Ok", style:UIAlertActionStyle.Default){ action in
self.dismissViewControllerAnimated(true, completion:nil);
}
myAlert.addAction(okAction);
self.presentViewController(myAlert, animated:true, completion:nil);
}

– To learn how to integrate Parse into your Swift App, watch this video https://youtu.be/wrMoVUe_oVg

– To learn how to create UI for this example please watch this video: https://youtu.be/a5pzlbBnfYg?list=PLdW9lrB9HDw2o0UI8cNXXN64LE7oEYrZM

– To learn how to make this example work with MySQL and PHP, here is a page with video and source code https://www.swiftdeveloperblog.com/store-user-information-in-mysql-database/

Also I published my first course on Udemy “Swift programming: User sign up, sign in, password reset and more” on exactly this topic: user sign up, sign in, sign out, password reset, email activation, and Navigation drawer left side and right side sliding panels and even more.. If you are interested, please check it out and watch the promo video to learn about the content of the course: https://www.udemy.com/swift-developer-cookies-user-sign-up-login-password-reset/

Posted in: User login and Registration with Swift
Tagged: Parse, Password, UIAlertController

Post navigation

Previous Previous post: Creating custom user interface files with XIB in Xcode 6 and Swift
Next Next post: Add Subview and Remove subview example in Swift

Primary Sidebar

Find videos

Unit Testing Swift?

Unit Testing Swift Mobile App

Recent Posts

  • Inject JavaScript into WKWebView
  • WKWebView. Load HTML File from App Bundle.
  • UIImagePickerController in Swift with Firebase. Cheat Sheet.
  • Firebase Realtime Database Cheat Sheet
  • Push Notifications with Firebase Cloud Messaging – Cheat Sheet

Search by Tag

AWS Facebook Facebook SDK Facebook Sign in Firebase HTTP HTTP Get HTTP Post Icon Java Keychain Load Images Login MMDrawerController MySQL Navigation Drawer NSURLSession Parse Password PHP Push Notifications Search Sign in SubView Swift UIActivityIndicator UIAlertController UIImage UIImagePickerController UIImageView UIPageViewController UIScrollView UISearchBar UISegmentedControl UITabBarController UITableView UITableViewCell UITableViewController UITableViewDatasource UIWebView Upload Xcode Xcode Tips Xcode Tips and Tricks XIB

Featured posts

  • Left side menu (Navigation Drawer) example with Swift
  • Creating custom user interface files with XIB in Xcode 6 and Swift
  • Add Subview and Remove subview example in Swift
  • Customize UINavigationBar appearance in Swift
  • MBProgressHUD example in Swift
  • iOS Keychain example in Swift
  • Image Upload with Progress Bar example in Swift
  • Circular Image or Image with Rounded Corners. Example in Swift

Copyright © 2023 Swift Developer Blog. Powered by WordPress and Themelia.

Would you like more video tutorials weekly?
  • Swift programming with Parse. Practical Examples.
  • Swift programming with PHP and MySQL. Practical examples.
  • iOS Mobile Apps Development with Swift

Enter your email and stay on top of things,

Subscribe!