Commit 0f4d98d2 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Fixed whoopsie where the expiry time for a new user was set from the expiry

time for the registration attempt. Locked users out after the first day :)
parent 52c97bc8
...@@ -69,6 +69,7 @@ if (isset($_REQUEST['key'])) { ...@@ -69,6 +69,7 @@ if (isset($_REQUEST['key'])) {
// Move the user record to the usr table from the registration table // Move the user record to the usr table from the registration table
$registrationid = $registration->id; $registrationid = $registration->id;
unset($registration->id); unset($registration->id);
unset($registration->expiry);
$registration->id = insert_record('usr', $registration, 'id', true); $registration->id = insert_record('usr', $registration, 'id', true);
log_debug($registration); log_debug($registration);
......
Supports Markdown
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