robertgauld/OSMExtender

View on GitHub
app/views/user_mailer/locked.text.erb

Summary

Maintainability
Test Coverage
<%= @user.name %> your accout has been locked due to <%= @user.failed_logins_count %> consecutive failed logins.

To unlock your account you can:
  * Wait until <%= @user.lock_expires_at.in_time_zone('Europe/London').strftime('%l:%M %p').strip %> (<%= distance_of_time_in_words_to_now(@user.lock_expires_at) %>).
  * Go to <%= link_to nil, routes.unlock_account_url(@user.unlock_token) %>.