Commit 354c58f1 by Dima Bart

Adjust to changes in the Customer API.

parent 5703ecc1
......@@ -40,8 +40,8 @@ class LoginViewController: UITableViewController {
//
private func loginUser() {
let credentials = BUYAccountCredentials(items: [
BUYAccountCredentialItem(emailWithValue: self.email),
BUYAccountCredentialItem(passwordWithValue: self.password),
BUYAccountCredentialItem(email: self.email),
BUYAccountCredentialItem(password: self.password),
])
BUYClient.sharedClient.loginCustomerWithCredentials(credentials) { (customer, token, error) in
......
......@@ -46,11 +46,11 @@ class SignupViewController: UITableViewController {
//
private func createUser() {
let credentials = BUYAccountCredentials(items: [
BUYAccountCredentialItem(firstNameWithValue: self.firstName),
BUYAccountCredentialItem(firstNameWithValue: self.lastName),
BUYAccountCredentialItem(emailWithValue: self.email),
BUYAccountCredentialItem(passwordWithValue: self.password),
BUYAccountCredentialItem(passwordConfirmationWithValue: self.passwordConfirm),
BUYAccountCredentialItem(firstName: self.firstName),
BUYAccountCredentialItem(lastName: self.lastName),
BUYAccountCredentialItem(email: self.email),
BUYAccountCredentialItem(password: self.password),
BUYAccountCredentialItem(passwordConfirmation: self.passwordConfirm),
])
BUYClient.sharedClient.createCustomerWithCredentials(credentials) { (customer, token, error) in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment