gitlab-org--gitlab-foss/app/views/notify/new_user_email.text.erb
Haunui Saint-sevin 1475206bcc Sync text part of email with the HTML part
The text part was missing the condition to change the first message.
Borrow the code from the HTML part.
2019-06-04 21:18:11 +00:00

17 lines
602 B
Text

Hi <%= sanitize_name(@user.name) %>!
<% if Gitlab::CurrentSettings.allow_signup? %>
Your account has been created successfully.
<% else %>
The Administrator created an account for you. Now you are a member of the company GitLab application.
<% end %>
login.................. <%= @user.email %>
<% if @user.created_by_id %>
Click here to set your password:
<%= edit_password_url(@user, :reset_password_token => @token) %>
This link is valid for <%= password_reset_token_valid_time %>. After it expires, you can request a new one here:
<%= new_user_password_url(user_email: @user.email) %>
<% end %>