/**
 * Created by Omnius on 6/27/16.
 */
$(document).ready(function() {
    const hawkSessionTokenCookie = MyUtils.getCookie('Hawk-Session-Token');

    console.log(hawkSessionTokenCookie);

    if (hawkSessionTokenCookie) {
        window.location = 'http://' + location.host + '/user/welcomeh';
    } else {
        $('body').css('visibility', 'visible');
    }
});

@@ -150,44 +150,286 @@
     
-console.log(hawkSessionTokenCookie);
+$('#closeUnauthorized').click(function () %7B%0A        $('#formUnauthorized').addClass('hidden');%0A    %7D);%0A%0A    const query = document.URL.split('?');%0A    if (query.length === 2) %7B%0A        if (query%5B1%5D.indexOf('registered') %3E -1) %7B%0A            $('#myModal').modal();%0A        %7D%0A    %7D
 %0A%0A  
@@ -528,17 +528,16 @@
 /welcome
-h
 ';%0A    %7D
@@ -566,35 +566,13 @@
 y').
-css('visibility', 'visible'
+show(
 );%0A 

Support modal call using jQuery; fix authorised user URL; show error for unauthorised