From 07aa6e596318288edcd95bc327489f42021f275f Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 28 May 2013 17:37:23 +0300 Subject: [PATCH] Warn users to change password after account was created --- app/views/notify/new_user_email.html.haml | 4 ++++ app/views/notify/new_user_email.text.erb | 2 ++ 2 files changed, 6 insertions(+) diff --git a/app/views/notify/new_user_email.html.haml b/app/views/notify/new_user_email.html.haml index 4ad3f201495..39ca7efc4c0 100644 --- a/app/views/notify/new_user_email.html.haml +++ b/app/views/notify/new_user_email.html.haml @@ -12,5 +12,9 @@ - unless Gitlab.config.gitlab.signup_enabled password.................................. %code= @password + +%p + Please change your password immediatly after login. + %p = link_to "Click here to login", root_url diff --git a/app/views/notify/new_user_email.text.erb b/app/views/notify/new_user_email.text.erb index 181ed2d2a49..b7089562311 100644 --- a/app/views/notify/new_user_email.text.erb +++ b/app/views/notify/new_user_email.text.erb @@ -7,4 +7,6 @@ login.................. <%= @user.email %> password............... <%= @password %> <% end %> +Please change your password immediatly after login. + Click here to login: <%= url_for(root_url) %>