Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
0a2fff5d
Commit
0a2fff5d
authored
Dec 19, 2006
by
Nigel McNie
Committed by
Nigel McNie
Dec 19, 2006
Browse files
Added hooks for user creation
parent
7b6c3498
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/users/uploadcsv.php
View file @
0a2fff5d
...
...
@@ -175,6 +175,8 @@ function uploadcsv_submit($values) {
foreach
(
ArtefactTypeProfile
::
get_mandatory_fields
()
as
$field
=>
$type
)
{
set_profile_field
(
$id
,
$field
,
$record
[
$i
++
]);
}
handle_event
(
'createuser'
,
$user
);
}
log_info
(
'Inserted '
.
count
(
$CSVDATA
)
.
' records'
);
...
...
htdocs/auth/lib.php
View file @
0a2fff5d
...
...
@@ -536,6 +536,7 @@ function login_submit($values) {
$userdata
=
call_static_method
(
$authclass
,
'get_user_info'
,
$username
);
$userdata
->
lastlogin
=
db_format_timestamp
(
time
());
insert_record
(
'usr'
,
$userdata
);
handle_event
(
'createuser'
,
$userdata
);
}
// @todo config form option for this for each external plugin. NOT for internal
else
if
(
get_config_plugin
(
'auth'
,
$authtype
,
'updateuserinfoonlogin'
))
{
...
...
htdocs/register.php
View file @
0a2fff5d
...
...
@@ -96,6 +96,7 @@ if (isset($_REQUEST['key'])) {
}
db_commit
();
handle_event
(
'createuser'
,
$registration
);
// Log the user in and send them to the homepage
$USER
->
login
(
$registration
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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