.
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@
|
||||
<h1>RTS</h1>
|
||||
<input type='button' id='btn-candidate-login' class="login-button" value='Enter candidate details'><span
|
||||
id="candidate-details"></span>
|
||||
<input type='button' id='btn-user-login' class="login-button" value='Log in'>
|
||||
<input type='button' id='btn-user-login' class="login-button" value='User log in'>
|
||||
<!-- <a href="#" id="overlay-close" class="close"></a> -->
|
||||
<div id="user" class="user-text"></div>
|
||||
<div id="packets">
|
||||
|
||||
+12
-1
@@ -240,6 +240,17 @@ async function loadExamList(data) {
|
||||
if (global_cid == null) {
|
||||
global_cid = "u-" + global_uid;
|
||||
}
|
||||
|
||||
$("#btn-user-login").hide();
|
||||
|
||||
let logout = $("<span>[x]</span>")
|
||||
logout.click(() => {
|
||||
user_db.user.clear().then(() => {
|
||||
window.location = "/accounts/logout/";
|
||||
return;
|
||||
});
|
||||
})
|
||||
$("#user").append(logout);
|
||||
}
|
||||
|
||||
|
||||
@@ -2453,7 +2464,7 @@ $("#btn-candidate-login").click(function(evt) {
|
||||
});
|
||||
|
||||
$("#btn-user-login").click(function(evt) {
|
||||
window.location = "https://www.penracourses.org.uk/accounts/login/?next=/rts"
|
||||
window.location = "/accounts/login/?next=/rts"
|
||||
//$(".exam-wrapper").toggle();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user