mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
improve authentication
This commit is contained in:
@@ -113,20 +113,21 @@ Ext.onReady(function(){
|
||||
repositoryLink.on('click', addRepositoryPanel);
|
||||
}
|
||||
|
||||
// create menu after login
|
||||
authCallbacks.push( createMainMenu );
|
||||
|
||||
Ext.Ajax.request({
|
||||
url: restUrl + 'authentication.json',
|
||||
method: 'GET',
|
||||
success: function(response){
|
||||
state = Ext.decode(response.responseText);
|
||||
console.debug( state );
|
||||
repositoryTypeStore.loadData(state.repositoryTypes);
|
||||
createMainMenu();
|
||||
var s = Ext.decode(response.responseText);
|
||||
loadState(s);
|
||||
},
|
||||
failure: function(){
|
||||
var loginWin = new Sonia.login.Window();
|
||||
loginWin.on('success', function(){
|
||||
/*loginWin.on('success', function(){
|
||||
createMainMenu();
|
||||
});
|
||||
});*/
|
||||
loginWin.show();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user