Skip to content

Commit

Permalink
app: Fixed login app to ensure session creation on login
Browse files Browse the repository at this point in the history
  • Loading branch information
cederberg committed Dec 18, 2023
1 parent 56a02b0 commit 182e142
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugin/system/files/js/RapidContext_App.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,9 @@ RapidContext.App.login = function (login, password, token) {
});
}
function getNonce() {
var proc = "system/session/current";
return RapidContext.App.callProc(proc).then(function (session) {
let proc = "system/session/current";
let opts = { session: true };
return RapidContext.App.callProc(proc, [], opts).then(function (session) {
return session.nonce;
});
}
Expand Down

0 comments on commit 182e142

Please sign in to comment.