Browse Source

Handle fresh auth error

Closes #1436
master
Igor Zhukov 7 years ago
parent
commit
b4e4ce5a79
  1. 1
      app/js/locales/en-us.json
  2. 3
      app/partials/desktop/error_modal.html

1
app/js/locales/en-us.json

@ -419,6 +419,7 @@ @@ -419,6 +419,7 @@
"error_modal_media_not_supported_description": "Your browser cannot play this media file. Try downloading the file and opening it in a standalone player.",
"error_modal_username_not_found_description": "There is no Telegram account with the username you provided.",
"error_modal_phonecalls_not_supported_description_md": "Unfortunately calls are not supported in the Web App at the moment.\n\nYou can call {user} using our mobile apps or native desktop applications.\n{download-link: Download »}",
"error_modal_fresh_reset_authorization_forbidden": "For security reasons, you can't terminate older sessions from a device that you've just connected. Please use an earlier connection or wait for a few hours",
"error_modal_bad_request_description": "One of the params is missing or invalid.",
"error_modal_unauthorized_description": "This action requires authorization access. Please {login-link: log in}.",

3
app/partials/desktop/error_modal.html

@ -61,6 +61,9 @@ @@ -61,6 +61,9 @@
<span ng-switch-when="CALLBACK_RESPONSE" ng-bind-html="error.description_html"></span>
<span ng-switch-when="FRESH_RESET_AUTHORISATION_FORBIDDEN" my-i18n="error_modal_fresh_reset_authorization_forbidden"></span>
<div ng-switch-default ng-switch="error.code">
<span ng-switch-when="400" my-i18n="error_modal_bad_request_description"></span>

Loading…
Cancel
Save