@@ -0,0 +1,9 | |||
|
1 | <% if @user.auth_source %>You can use your "<%= @user.auth_source.name %>" account to log into Redmine. | |
|
2 | <% else %>Your Redmine account information: | |
|
3 | * Login: <%= @user.login %> | |
|
4 | * Password: <%= @password %> | |
|
5 | <% end %> | |
|
6 | Log in: <%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'login' %> | |
|
7 | <% unless @user.auth_source %> | |
|
8 | You can change your password here: <%= url_for :only_path => false, :host => Setting.host_name, :controller => 'my', :action => 'account' %> | |
|
9 | <% end %> |
@@ -0,0 +1,9 | |||
|
1 | <% if @user.auth_source %>Vous pouvez utiliser votre compte "<%= @user.auth_source.name %>" pour vous connecter à Redmine. | |
|
2 | <% else %>Paramètres de connexion de votre compte Redmine: | |
|
3 | * Identifiant: <%= @user.login %> | |
|
4 | * Mot de passe: <%= @password %> | |
|
5 | <% end %> | |
|
6 | Pour se connecter à l'application: <%= url_for :only_path => false, :host => Setting.host_name, :controller => 'account', :action => 'login' %> | |
|
7 | <% unless @user.auth_source %> | |
|
8 | Vous pouvez changer votre mot de passe à l'adresse: <%= url_for :only_path => false, :host => Setting.host_name, :controller => 'my', :action => 'account' %> | |
|
9 | <% end %> |
@@ -61,6 +61,7 class UsersController < ApplicationController | |||
|
61 | 61 | @custom_values = UserCustomField.find(:all).collect { |x| CustomValue.new(:custom_field => x, :customized => @user, :value => params["custom_fields"][x.id.to_s]) } |
|
62 | 62 | @user.custom_values = @custom_values |
|
63 | 63 | if @user.save |
|
64 | Mailer.deliver_account_information(@user, params[:password]) if params[:send_information] | |
|
64 | 65 | flash[:notice] = l(:notice_successful_create) |
|
65 | 66 | redirect_to :action => 'list' |
|
66 | 67 | end |
@@ -17,6 +17,14 | |||
|
17 | 17 | |
|
18 | 18 | class Mailer < ActionMailer::Base |
|
19 | 19 | helper IssuesHelper |
|
20 | ||
|
21 | def account_information(user, password) | |
|
22 | set_language_if_valid user.language | |
|
23 | recipients user.mail | |
|
24 | from Setting.mail_from | |
|
25 | subject l(:mail_subject_register) | |
|
26 | body :user => user, :password => password | |
|
27 | end | |
|
20 | 28 | |
|
21 | 29 | def issue_add(issue) |
|
22 | 30 | set_language_if_valid(Setting.default_language) |
@@ -3,4 +3,5 | |||
|
3 | 3 | <% labelled_tabular_form_for :user, @user, :url => { :action => "add" } do |f| %> |
|
4 | 4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | 5 | <%= submit_tag l(:button_create) %> |
|
6 | <% end %> No newline at end of file | |
|
6 | <%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %> | |
|
7 | <% end %> |
@@ -17,4 +17,6 config.action_controller.perform_caching = true | |||
|
17 | 17 | |
|
18 | 18 | # Disable delivery errors if you bad email addresses should just be ignored |
|
19 | 19 | config.action_mailer.raise_delivery_errors = false |
|
20 | ||
|
20 | ||
|
21 | # No email in production log | |
|
22 | config.action_mailer.logger = nil |
@@ -395,6 +395,7 label_message_plural: Messages | |||
|
395 | 395 | label_message_last: Last message |
|
396 | 396 | label_message_new: New message |
|
397 | 397 | label_reply_plural: Replies |
|
398 | label_send_information: Send account information to the user | |
|
398 | 399 | |
|
399 | 400 | button_login: Вход |
|
400 | 401 | button_submit: Изпращане |
@@ -395,6 +395,7 label_message_plural: Messages | |||
|
395 | 395 | label_message_last: Last message |
|
396 | 396 | label_message_new: New message |
|
397 | 397 | label_reply_plural: Replies |
|
398 | label_send_information: Send account information to the user | |
|
398 | 399 | |
|
399 | 400 | button_login: Einloggen |
|
400 | 401 | button_submit: OK |
@@ -395,6 +395,7 label_message_plural: Messages | |||
|
395 | 395 | label_message_last: Last message |
|
396 | 396 | label_message_new: New message |
|
397 | 397 | label_reply_plural: Replies |
|
398 | label_send_information: Send account information to the user | |
|
398 | 399 | |
|
399 | 400 | button_login: Login |
|
400 | 401 | button_submit: Submit |
@@ -395,6 +395,7 label_message_plural: Messages | |||
|
395 | 395 | label_message_last: Last message |
|
396 | 396 | label_message_new: New message |
|
397 | 397 | label_reply_plural: Replies |
|
398 | label_send_information: Send account information to the user | |
|
398 | 399 | |
|
399 | 400 | button_login: Conexión |
|
400 | 401 | button_submit: Someter |
@@ -395,6 +395,7 label_message_plural: Messages | |||
|
395 | 395 | label_message_last: Dernier message |
|
396 | 396 | label_message_new: Nouveau message |
|
397 | 397 | label_reply_plural: Réponses |
|
398 | label_send_information: Envoyer les informations à l'utilisateur | |
|
398 | 399 | |
|
399 | 400 | button_login: Connexion |
|
400 | 401 | button_submit: Soumettre |
@@ -395,6 +395,7 label_message_plural: Messages | |||
|
395 | 395 | label_message_last: Last message |
|
396 | 396 | label_message_new: New message |
|
397 | 397 | label_reply_plural: Replies |
|
398 | label_send_information: Send account information to the user | |
|
398 | 399 | |
|
399 | 400 | button_login: Login |
|
400 | 401 | button_submit: Invia |
@@ -396,6 +396,7 label_message_plural: Messages | |||
|
396 | 396 | label_message_last: Last message |
|
397 | 397 | label_message_new: New message |
|
398 | 398 | label_reply_plural: Replies |
|
399 | label_send_information: Send account information to the user | |
|
399 | 400 | |
|
400 | 401 | button_login: ログイン |
|
401 | 402 | button_submit: 変更 |
@@ -395,6 +395,7 label_message_plural: Berichten | |||
|
395 | 395 | label_message_last: Laatste bericht |
|
396 | 396 | label_message_new: Nieuw bericht |
|
397 | 397 | label_reply_plural: Antwoorden |
|
398 | label_send_information: Send account information to the user | |
|
398 | 399 | |
|
399 | 400 | button_login: Inloggen |
|
400 | 401 | button_submit: Toevoegen |
@@ -395,6 +395,7 label_message_plural: Messages | |||
|
395 | 395 | label_message_last: Last message |
|
396 | 396 | label_message_new: New message |
|
397 | 397 | label_reply_plural: Replies |
|
398 | label_send_information: Send account information to the user | |
|
398 | 399 | |
|
399 | 400 | button_login: Login |
|
400 | 401 | button_submit: Enviar |
General Comments 0
You need to be logged in to leave comments.
Login now