From: Thomas Berezansky Date: Mon, 12 Sep 2011 17:33:03 +0000 (-0400) Subject: When workstation is invalid request a new seed X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=14b0f9f9718776dc42141c47d063756cd823d047;p=working%2FEvergreen.git When workstation is invalid request a new seed The original one may no longer be valid Signed-off-by: Thomas Berezansky Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/xul/staff_client/chrome/content/auth/session.js b/Open-ILS/xul/staff_client/chrome/content/auth/session.js index ca5cb0d39b..c3f9a13b52 100644 --- a/Open-ILS/xul/staff_client/chrome/content/auth/session.js +++ b/Open-ILS/xul/staff_client/chrome/content/auth/session.js @@ -60,6 +60,15 @@ auth.session.prototype = { data.stash('ws_info'); data.ws_name = null; data.stash('ws_name'); params.type = 'temp'; + // We need to get a new seed + init = this.network.request( + api.AUTH_INIT.app, + api.AUTH_INIT.method, + [ this.view.name_prompt.value ] + ); + if(init) { + params.password = hex_md5(init + hex_md5( this.view.password_prompt.value )); + } robj = this.network.simple_request('AUTH_COMPLETE',[ params ]); if (robj.ilsevent == 0) { this.key = robj.payload.authtoken;