Subversion Repositories ALCASAR

Rev

Rev 484 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 484 Rev 2370
Line 248... Line 248...
248
	if ( typeof (resp.challenge) != 'string' ) {
248
	if ( typeof (resp.challenge) != 'string' ) {
249
		log('logonStep2: cannot find a challenge. Aborting.');
249
		log('logonStep2: cannot find a challenge. Aborting.');
250
		return chilliController.onError('Cannot get challenge');
250
		return chilliController.onError('Cannot get challenge');
251
	}
251
	}
252
 
252
 
253
	if ( resp.clientSate === chilliController.stateCodes.AUTH ) {
253
	if ( resp.clientState === chilliController.stateCodes.AUTH ) {
254
		log('logonStep2: Already connected. Aborting.');
254
		log('logonStep2: Already connected. Aborting.');
255
		return chilliController.onError('Already connected.');
255
		return chilliController.onError('Already connected.');
256
	}
256
	}
257
 
257
 
258
	var challenge = resp.challenge;
258
	var challenge = resp.challenge;