mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 10:42:41 +01:00
Add a checkbox to allow administrators to re-send the welcome email to users.
Summary: See title - This simply adds a checkbox to the "Edit User" page in the admin view, to allow an administrator to re-send the "Welcome to Phabricator" email. Test Plan: Sent myself another welcome email using the checkbox. Created a new user using the admin panel, to make sure emails still get sent for new users. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T1524 Differential Revision: https://secure.phabricator.com/D3081
This commit is contained in:
parent
0fb93e5423
commit
729f246f92
1 changed files with 12 additions and 3 deletions
|
@ -179,11 +179,11 @@ final class PhabricatorPeopleEditController
|
||||||
id(new PhabricatorUserEditor())
|
id(new PhabricatorUserEditor())
|
||||||
->setActor($admin)
|
->setActor($admin)
|
||||||
->createNewUser($user, $email);
|
->createNewUser($user, $email);
|
||||||
|
}
|
||||||
|
|
||||||
if ($welcome_checked) {
|
if ($welcome_checked) {
|
||||||
$user->sendWelcomeEmail($admin);
|
$user->sendWelcomeEmail($admin);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$response = id(new AphrontRedirectResponse())
|
$response = id(new AphrontRedirectResponse())
|
||||||
->setURI('/people/edit/'.$user->getID().'/?saved=true');
|
->setURI('/people/edit/'.$user->getID().'/?saved=true');
|
||||||
|
@ -264,6 +264,15 @@ final class PhabricatorPeopleEditController
|
||||||
id(new AphrontFormStaticControl())
|
id(new AphrontFormStaticControl())
|
||||||
->setLabel('Email')
|
->setLabel('Email')
|
||||||
->setValue($status));
|
->setValue($status));
|
||||||
|
|
||||||
|
$form->appendChild(
|
||||||
|
id(new AphrontFormCheckboxControl())
|
||||||
|
->addCheckbox(
|
||||||
|
'welcome',
|
||||||
|
1,
|
||||||
|
'Re-send "Welcome to Phabricator" email.',
|
||||||
|
false));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$form->appendChild($this->getRoleInstructions());
|
$form->appendChild($this->getRoleInstructions());
|
||||||
|
|
Loading…
Reference in a new issue