src_js/router.js
/**
 * Retrieving the access via email by the secret link
 */
Retrieving the access via email by the secret link
Retrieving the access via email by the secret link
function url__access(arg){
    $.ajax({type: 'POST', url: wmgui.access_endpoint, data: {a: arg, ed: wmgui.edition}}).done(function(data){
        if (data.error){
            window.location.replace('#start');
            return wmgui.notify(data.error);
        }
        if (!data.sid || !data.name || !data.acclogin){
            window.location.replace('#start');
            return wmgui.notify('Connection to server is lost, please try to <a href=javascript:location.reload()>reload</a>');
        }
        user_login(data.sid, data.name, data.acclogin, data.admin, data.oauths);
        window.location.replace('#start');
    }).fail(function(xhr, textStatus, errorThrown){
        window.location.replace('#start');
        return wmgui.notify('A network error occured. Please, try again');
    });
}
function url__access ( arg ) { $ . ajax ( { type : 'POST' , url : wmgui . access_endpoint , data : { a : arg , ed : wmgui . edition } } ) . done ( function ( data ) { if ( data . error ) { window . location . replace ( '#start' ) ; return wmgui . notify ( data . error ) ; } if ( ! data . sid || ! data . name || ! data . acclogin ) { window . location . replace ( '#start' ) ; return wmgui . notify ( 'Connection to server is lost, please try to <a href=javascript:location.reload()>reload</a>' ) ; } user_login ( data . sid , data . name , data . acclogin , data . admin , data . oauths ) ; window . location . replace ( '#start' ) ; } ) . fail ( function ( xhr , textStatus , errorThrown ) { window . location . replace ( '#start' ) ; return wmgui . notify ( 'A network error occured. Please, try again' ) ; } ) ; }
Retrieving the access via email by the secret link
Retrieving the access via email by the secret link