Commit 1ea46dd1 authored by Ivan Tyagov's avatar Ivan Tyagov

Send properly email notofication.

parent 2b92f990
......@@ -88,7 +88,10 @@ login, password = context.CredentialRequest_createUser()\n
# Update Local Roles\n
context.CredentialRequest_updateLocalRolesOnSecurityGroups()\n
\n
if portal_preferences.isPreferredSystemGeneratePassword():\n
if password is not None:\n
if password.startswith(\'{SSHA}\'):\n
#password is encoded, set it to None to script witch send the password to user\n
password = None\n
# Send notification in activities only if we already generated and set password\n
# else a Credential Recovery process will take care\n
context.activate(activity=\'SQLQueue\').CredentialRequest_sendAcceptedNotification(login, password)\n
......
......@@ -111,10 +111,6 @@ else:\n
#Check assignment for the current instance\n
person.Person_validateGlobalUserAccount()\n
\n
if password is not None and password.startswith(\'{SSHA}\'):\n
#password is encoded, set it to None to script witch send the password to user\n
password = None\n
\n
return login, password\n
</string> </value>
</item>
......
381
\ No newline at end of file
382
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment