From 0fafb51ac7ee10358a97f69c4302451d499058cb Mon Sep 17 00:00:00 2001 From: miker Date: Mon, 19 Dec 2005 17:03:57 +0000 Subject: [PATCH] fixing up auth code to correctly record the session from the new return style git-svn-id: svn://svn.open-ils.org/ILS/trunk@2445 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/reporter/templates/login.ttk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/reporter/templates/login.ttk b/Open-ILS/src/reporter/templates/login.ttk index f03b526803..bd6049428c 100644 --- a/Open-ILS/src/reporter/templates/login.ttk +++ b/Open-ILS/src/reporter/templates/login.ttk @@ -33,16 +33,16 @@ var seed = init_request.getResultObject(); if( ! seed || seed == '0') { - alert( "Error Communicating with Authentication Server" ); - return null; + alert( "Error Communicating with Authentication Server" ); + return null; } var auth_request = new RemoteRequest( "open-ils.auth", "open-ils.auth.authenticate.complete", - uname, hex_md5(seed + hex_md5(passwd)), "staff"); + uname, hex_md5(seed + hex_md5(passwd)), "staff"); auth_request.send(true); - var auth_result = auth_request.getResultObject(); + var auth_result = auth_request.getResultObject().payload.authtoken; if(auth_result == '0' || auth_result == null || auth_result.length == 0) { alert("Login failed"); -- 2.43.2