Skip to content

Commit 9747434

Browse files
committed
start session after register, redirect to dashboard (which requires login anyway)
1 parent f9f9963 commit 9747434

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

frontend/generated.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@
672672
simplyApp.commands.autofocus();
673673
},
674674
"registerCompleted" : function(el) {
675-
document.location.href="/login/";
675+
document.location.href="/dashboard/";
676676
simplyApp.commands.autofocus();
677677
},
678678
"registerDone" : function(el) {

www/idp/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
case "/api/accounts/new/":
203203
$verifyToken = User::getVerifyToken($_POST['confirm']);
204204
if (!$verifyToken) {
205-
error_log("No verify token sent");
205+
error_log("Could not read verify token");
206206
header("HTTP/1.1 400 Bad Request");
207207
exit();
208208
}
@@ -240,6 +240,7 @@
240240
);
241241
header("HTTP/1.1 201 Created");
242242
header("Content-type: application/json");
243+
Session::start($_POST['email']);
243244
echo json_encode($responseData, JSON_PRETTY_PRINT);
244245
break;
245246
case "/api/accounts/reset-password":

0 commit comments

Comments
 (0)