Commit c8e14bc7 authored by o's avatar o
Browse files

onion wording

parent 5ac2db24
......@@ -68,8 +68,6 @@ class LoginController < ApplicationController
flash[:notice] = :recovery_token_hint
elsif Zxcvbn.test(@input_pw).score < 2
flash[:notice] = :weak_password_hint
# elsif !session[:recovery_email_set]
# flash[:notice] = :recovery_email_hint
else
flash[:notice] = nil
end
......
class LogoutController < ApplicationController
def new
reset_user_session
@onion = request.original_url =~ /\.onion\//
@logged_in = where_am_i_logged_in
@logout_urls = ApiBackend::logout_urls
cookies.delete(:logged_in)
......
......@@ -8,3 +8,9 @@
<% else %>
Sorry, failed! You are NOT loged out. Please try again, or close the browser.
<% end %>
<br />
<br />
<% if @onion || true%>
<%= t(:logout_onion_warning) %> <a href="https://login.immerda.ch/logout"><%= t(:logout_onion_warning_button) %> </a>
<% end %>
......@@ -14,7 +14,10 @@ de:
edit: "Bearbeiten"
deleted: "Gelöscht"
recovery_token_hint: "Wir empfehlen dir einen Wiederherstellungscode zu generieren"
recovery_token_hint: "Wir empfehlen dir auf users.immerda.ch einen Wiederherstellungscode zu generieren"
logout_onion_warning: "Du hast dich nur von den onion services abgemeldet."
logout_onion_warning_button: "Von anderen abmelden (falls nötig)"
current_sessions: "Aktuell angemeldete Sitzungen"
......
......@@ -14,7 +14,10 @@ en:
edit: "Edit"
deleted: "Deleted"
recovery_token_hint: "We recommend you generate a recovery token"
recovery_token_hint: "We recommend you generate a recovery token at users.immerda.ch"
logout_onion_warning: "You are only logged out from onion services."
logout_onion_warning_button: "Logout from others (if needed)"
current_sessions: "Currently existing sessions"
......
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