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=b1660a781e2149e0e91b693b13c91f04f232779d;p=Evergreen.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 405c303e9e..e8c7b6101f 100644 --- a/Open-ILS/xul/staff_client/chrome/content/auth/session.js +++ b/Open-ILS/xul/staff_client/chrome/content/auth/session.js @@ -59,6 +59,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;