Commit 9eaefa3b authored by o's avatar o
Browse files

recovery token wording

parent 2d052b88
......@@ -41,11 +41,11 @@ class SessionsController < ApplicationController
res = api.account_properties
if res['mail_crypt_enabled'] &&
if res['locked']
flash[:notice] = :locked_account_hint
elsif res['mail_crypt_enabled'] &&
res['mail_crypt_recovery_token_present']
flash[:notice] = :recovery_token_hint
elsif res['locked']
flash[:notice] = :locked_account_hint
elsif res['mail_crypt_enabled'] &&
!session[:recovery_email_set]
# TODO: add translations
......
......@@ -23,7 +23,7 @@ de:
recovery_token_hint: "Wir empfehlen dir einen Wiederherstellungscode zu generieren"
backup_recovery_token_email: "Sende mir den Wiederherstellungscode an meine Wiederherstellubngs Email Adresse (nur für immerda Wiederherstellungs Adresse möglich)."
backup_recovery_token_email: "Sende mir einen Wiederherstellungscode an meine Wiederherstellubngs Email Adresse (nur für immerda Wiederherstellungs Adresse möglich)."
backup_recovery_token_keep: "Ich kann den Wiederherstellungscode jetzt gerade nicht aufbewahren und werde ihn später generieren."
backup_recovery_token_delete: "Ich kann den Wiederherstellungscode jetzt sicher aufbewahren."
......
......@@ -23,7 +23,7 @@ en:
recovery_token_hint: "We recommend you generate a recovery token"
backup_recovery_token_email: "Send me my recovery token to my recovery email address (only for immerda recovery emails)."
backup_recovery_token_email: "Send me a recovery token to the recovery email address (only for immerda recovery emails)."
backup_recovery_token_delete: "I can safely store my token."
backup_recovery_token_keep: "I can't safely store the token right now. I will generate one later."
......
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