|
@ -46,24 +46,6 @@ class ProfileChangePasswordViewController: UIViewController { |
|
|
|
|
|
|
|
|
// MARK: - Properties |
|
|
// MARK: - Properties |
|
|
|
|
|
|
|
|
var password = "" { |
|
|
|
|
|
didSet { |
|
|
|
|
|
self.textFieldNewPassword.text = password |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var confirmPassword = "" { |
|
|
|
|
|
didSet { |
|
|
|
|
|
self.textFieldConfirmPassword.text = confirmPassword |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var oldPassword = "" { |
|
|
|
|
|
didSet { |
|
|
|
|
|
self.textFieldCurrentPassword.text = oldPassword |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var encryptedPassword: String = "" |
|
|
var encryptedPassword: String = "" |
|
|
var encryptedOldPassword = "" |
|
|
var encryptedOldPassword = "" |
|
|
var encryptedConfirmPassword = "" |
|
|
var encryptedConfirmPassword = "" |
|
@ -256,11 +238,11 @@ extension ProfileChangePasswordViewController{ |
|
|
@objc private func editingChanged(_ textField: UITextField) { |
|
|
@objc private func editingChanged(_ textField: UITextField) { |
|
|
switch textField { |
|
|
switch textField { |
|
|
case textFieldCurrentPassword: |
|
|
case textFieldCurrentPassword: |
|
|
oldPassword = textField.text ?? "" |
|
|
|
|
|
|
|
|
encryptedOldPassword = textField.text ?? "" |
|
|
case textFieldNewPassword: |
|
|
case textFieldNewPassword: |
|
|
password = textField.text ?? "" |
|
|
|
|
|
|
|
|
encryptedPassword = textField.text ?? "" |
|
|
case textFieldConfirmPassword: |
|
|
case textFieldConfirmPassword: |
|
|
confirmPassword = textField.text ?? "" |
|
|
|
|
|
|
|
|
encryptedConfirmPassword = textField.text ?? "" |
|
|
default: |
|
|
default: |
|
|
break |
|
|
break |
|
|
} |
|
|
} |
|
|