equal
deleted
inserted
replaced
354 { |
354 { |
355 document.getElementById('messageBox').style.backgroundColor = '#FFF'; |
355 document.getElementById('messageBox').style.backgroundColor = '#FFF'; |
356 ajaxLoginBuildForm(response.respawn_info); |
356 ajaxLoginBuildForm(response.respawn_info); |
357 ajaxLoginShowFriendlyError(response); |
357 ajaxLoginShowFriendlyError(response); |
358 }, 2500); |
358 }, 2500); |
|
359 break; |
|
360 case 'login_success_reset': |
|
361 var conf = confirm($lang.get('user_login_ajax_msg_used_temp_pass')); |
|
362 if ( conf ) |
|
363 { |
|
364 var url = makeUrlNS('Special', 'PasswordReset/stage2/' + response.user_id + '/' + response.temp_password); |
|
365 window.location = url; |
|
366 } |
|
367 else |
|
368 { |
|
369 // treat as a failure |
|
370 ajaxLoginSetStatus(AJAX_STATUS_DESTROY); |
|
371 document.getElementById('messageBox').style.backgroundColor = '#C0C0C0'; |
|
372 var mb_parent = document.getElementById('messageBox').parentNode; |
|
373 new Spry.Effect.Shake(mb_parent, {duration: 1500}).start(); |
|
374 setTimeout(function() |
|
375 { |
|
376 document.getElementById('messageBox').style.backgroundColor = '#FFF'; |
|
377 ajaxLoginBuildForm(response.respawn_info); |
|
378 // don't show an error here, just silently respawn |
|
379 }, 2500); |
|
380 } |
359 break; |
381 break; |
360 case 'noop': |
382 case 'noop': |
361 break; |
383 break; |
362 } |
384 } |
363 } |
385 } |