Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-authentication
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
acs-authentication
Commits
25d4d663
Commit
25d4d663
authored
Jul 22, 2013
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- Disable notification when registering users because it's handled in
/packages/intranet-core/www/users/user-add-3.tcl
parent
f6cb3799
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
19 deletions
+23
-19
local-procs.tcl
tcl/local-procs.tcl
+23
-19
No files found.
tcl/local-procs.tcl
View file @
25d4d663
...
...
@@ -499,28 +499,32 @@ ad_proc -private auth::local::registration::Register {
set system_name
[
ad_system_name
]
set system_url
[
ad_url
]
# --------------------------------------------------------------------------------------
# PO Patch: notification is handled in /packages/intranet-core/www/users/user-add-3.tcl
# --------------------------------------------------------------------------------------
# LARS TODO: Move this out of the local driver and into the auth framework
# Send password confirmation email to user
if
{
[
set
email_reg_confirm_p
[
parameter::get -parameter EmailRegistrationConfirmationToUserP -package_id
[
ad_conn subsite_id
]
-default 0
]]
!= -1
}
{
if
{
$generated
_pwd_p ||
\
[
parameter::get -parameter RegistrationProvidesRandomPasswordP -package_id
[
ad_conn subsite_id
]
-default 0
]
||
\
$email
_reg_confirm_p
}
{
with_catch errmsg
{
auth::password::email_password
\
-username
$username
\
-authority_id
$authority
_id
\
-password
$password
\
-from
[
parameter::get -parameter NewRegistrationEmailAddress -package_id
[
ad_conn subsite_id
]
-default
[
ad_system_owner
]]
\
-subject_msg_key
"acs-subsite.email_subject_Registration_password"
\
-body_msg_key
"acs-subsite.email_body_Registration_password"
}
{
#
if
{
[
set
email_reg_confirm_p
[
parameter::get -parameter EmailRegistrationConfirmationToUserP -package_id
[
ad_conn subsite_id
]
-default 0
]]
!= -1
}
{
#
if
{
$generated
_pwd_p ||
\
#
[
parameter::get -parameter RegistrationProvidesRandomPasswordP -package_id
[
ad_conn subsite_id
]
-default 0
]
||
\
#
$email
_reg_confirm_p
}
{
#
with_catch errmsg
{
#
auth::password::email_password
\
#
-username
$username
\
#
-authority_id
$authority
_id
\
#
-password
$password
\
#
-from
[
parameter::get -parameter NewRegistrationEmailAddress -package_id
[
ad_conn subsite_id
]
-default
[
ad_system_owner
]]
\
#
-subject_msg_key
"acs-subsite.email_subject_Registration_password"
\
#
-body_msg_key
"acs-subsite.email_body_Registration_password"
#
}
{
# We don't fail hard here, just log an error
global errorInfo
ns_log Error
"Error sending registration confirmation to
$email.
\n
$error
Info"
}
}
}
#
global errorInfo
#
ns_log Error
"Error sending registration confirmation to
$email.
\n
$error
Info"
#
}
#
}
#
}
# LARS TODO: Move this out of the local driver and into the auth framework
# Notify admin on new registration
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment