Check core data model for username and password validation

I want a function to check if a username and password exists in each respective column for validation. Both a username and password have to exists for it to pass. Right now it is implied for both columns to not be nil. textField1 is the username and textfield2 is the password. I have added a pic with my core data info. Ignore timeIn and timeOut.

                var textField1 = UITextField()

     var textField2 = UITextField()

    @objc func check() {}

sFLwP

The password shall never be stored in the database, instead you need to use the Keychain.

Not sure if you need special table for user data information since you can store it to UserDefaults with help of NSSecureCoding

This topic was automatically closed after 166 days. New replies are no longer allowed.