プロジェクト

全般

プロフィール

Vote #64639

未完了

New user notification

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Email notifications_9
開始日:
2009/02/11
期日:
進捗率:

0%

予定工数:
category_id:
9
version_id:
32
issue_org_id:
2722
author_id:
3497
assigned_to_id:
0
comments:
21
status_id:
1
tracker_id:
2
plus1:
4
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Very nice application - keep up the great work.

I've put instructions on the my main page for people to email me once they self-register so I can assign them to the appropriate projects. It would be great to be able to set an email address (or several) to be notified on user self-activation.


journals

Ric Turley wrote:
> It would be great to be able to set an email address (or several) to be notified on user self-activation.

To rephrase this, you would like to be able to setup an email address that gets notified when a user has been activated correct?

Example:

# User A signs up for Redmine
# User A gets registration email
# User A clicks the activation link
# User B gets a notification that User A has completed activation

--------------------------------------------------------------------------------
Ideally...

Scenario 1: Self Registration setting set to "account activation by email"
# User A signs up for Redmine
# User A gets registration email
# User A clicks the activation link
# User B (and possibly C, D, ... N) gets a notification that User A has completed activation

Scenario 2: Self Registration setting set to "automatic account activation"
# User A signs up for Redmine
# User B (and possibly C, D, ... N) gets a notification that User A has completed activation

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Related to #3775...
--------------------------------------------------------------------------------
Removing from 1.0. This hasn't been completed and 1.0 is feature frozen.
--------------------------------------------------------------------------------
Hi,

this is exactly the feature I'm looking for in our installation. Will this be added any time soon..?

--------------------------------------------------------------------------------
+1

Very useful for us!
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
I wouldn't mind creating a patch that would:

* Create an option in either Settings->Authentication or Settings->Email notifications to "Notify Administrators of new account activation"
* Email administrators when a new account is activated

A question in my mind is when Self Registration is set to Manual Account Activation, an admin would have to manually activate the account. Would it be worth emailing other admins of this?

Any comments, suggestions, ideas?

--------------------------------------------------------------------------------
The proposal is exactly what we are looking for our case.
Better would be if any project manager would receive the notification. In our case the manager is the one responsible to add user to a project.
--------------------------------------------------------------------------------
This behavior can be implemented by a plugin after the solution from #1945 is applied. This involves inserting a single line into app/models/user.rb to declare a 'on user create' hook, which can then be referenced by plugin code that, in turn, implements the desired behaviors. In the case of #1945, this means adding users to default projects; in the case of this issue (2722), this means invoking a plugin-specific Mailer class.

More information on implementing a plugin-specific Mailer can be found here:
http://stackoverflow.com/questions/10505894/send-email-from-redmine-plugin

Additional useful information on working with Action Mailer in general can be found here:
http://guides.rubyonrails.org/action_mailer_basics.html

And last, but not least, don't forget to log your hooks for debugging purposes:
<pre>Rails.logger.info("New user stuff going down")</pre>

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
When Self-registration ("Administration" > "Settings" > "Authentication") is "account activation by email" or "automatic account activation", send account activate notification to admins can be turned on/off.

!{width:600px; border:1px solid #ccc;}add_checkbox_for_send_notification.png!

If "Send notification to admins when activated" is checked, a notification will be sent to the administrators when a self-registered user account is activated.

!{width:600px; border:1px solid #ccc;}notification_mail_when_user_account_activated.png!

I attached a patch.
--------------------------------------------------------------------------------
Thank you for posting the patch.

I think the checkbox should be placed below "Authentication required" dropdown because the dropdown and the checkbox have a close connection.
--------------------------------------------------------------------------------
Go MAEDA wrote:
> Thank you for posting the patch.
>
> I think the checkbox should be placed below "Authentication required" dropdown because the dropdown and the checkbox have a close connection.

Why not in "Email notifications" tab where are all settings related to email notifications?
--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> Go MAEDA wrote:
> > I think the checkbox should be placed below "Authentication required" dropdown because the dropdown and the checkbox have a close connection.
>
> Why not in "Email notifications" tab where are all settings related to email notifications?

Moved the checkbox to the "Email notifications" tab. Unlike other notifications, this is a notification to the administrators, so I added a "Sent to administrators" checkbox.

!{width:600px;border:1px solid grey;}settings-email-notifications.png!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,3775,Request project access by new users
relates,New,1945,Automatically add user to project
relates,New,32142,Send notification when a user is created via LDAP on-the-fly user creation

Admin Redmine さんが3年以上前に更新

  • カテゴリEmail notifications_9 にセット
  • 対象バージョンCandidate for next major release_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0