howitworks is default home page if not logged in. Otherwise course
index. NOTE: didn't fix old wrong behavior of going to index if not logged in and tried to navigate to a specific page. Will work on that next.
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
submit_data,
|
||||
function(json) {
|
||||
if(json.success) {
|
||||
location.href = "${reverse('index')}";
|
||||
location.href = "${reverse('homepage')}";
|
||||
} else if($('#login_error').length == 0) {
|
||||
$('#login_form').prepend('<div id="login_error" class="message message-status error">' + json.value + '</span></div>');
|
||||
$('#login_error').addClass('is-shown');
|
||||
|
||||
Reference in New Issue
Block a user