Commit 97b27716 authored by Jose Blaya's avatar Jose Blaya
Browse files

Update error message

parent 814a74d1
......@@ -156,7 +156,7 @@ class AccountViewController: AutolayoutViewController {
}
weakSelf.textEmail.text = ""
let alert = Macros.alert(L10n.Global.error, error?.localizedDescription)
let alert = Macros.alert(L10n.Global.error, L10n.Account.Error.unauthorized)
alert.addCancelAction(L10n.Global.close)
self?.present(alert, animated: true, completion: nil)
......
......@@ -44,6 +44,10 @@ internal enum L10n {
/// Email address
internal static let placeholder = L10n.tr("Localizable", "account.email.placeholder")
}
internal enum Error {
/// Your username or password is incorrect.
internal static let unauthorized = L10n.tr("Localizable", "account.error.unauthorized")
}
internal enum ExpiryDate {
/// Your plan has expired.
internal static let expired = L10n.tr("Localizable", "account.expiry_date.expired")
......
......@@ -99,6 +99,7 @@
"account.update.email.require.password.title" = "PIA Password Required";
"account.update.email.require.password.message" = "For security reasons we require your PIA password to perform a change in your account. Please input your PIA password to proceed.";
"account.update.email.require.password.button" = "Submit";
"account.error.unauthorized" = "Your username or password is incorrect.";
// SETTINGS
......
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