From 949039a1666f888444dc541ad5fa2601c57aef47 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Mon, 12 Sep 2011 13:33:03 -0400 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/chrome/content/auth/session.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- 2.43.2