option to send welcome message again after password change is disabled
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/admin/create-users@133448 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
204ee9308b
commit
6a421bc21d
|
@ -271,8 +271,10 @@ public class RegisteredUsersTable extends Composite {
|
|||
|
||||
if(value == null)
|
||||
return;
|
||||
|
||||
sb.appendHtmlConstant("<Button>Send Welcome</Button>");
|
||||
if(!value.isPasswordChanged())
|
||||
sb.appendHtmlConstant("<Button>Send Welcome</Button>");
|
||||
else
|
||||
sb.appendHtmlConstant("<Button disabled>Send Welcome</Button>");
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -227,6 +227,7 @@ public class CreateUsersImpl extends RemoteServiceServlet implements HandleUsers
|
|||
mailMessage.setFrom(from);
|
||||
mailMessage.setTo(to);
|
||||
|
||||
// TODO it would be nice to let the creator specify the message to be sent
|
||||
String body = "<p>Dear " + username + ",<br />" + "<br />" +
|
||||
"Welcome! Your new account at " + portalUrl + " is ready to be used. Your temporary password is training1, you will be asked to reset it at your first login.<br />" +
|
||||
"<br />" + "Sincerely,<br />" +
|
||||
|
|
Loading…
Reference in New Issue