PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` OC.Lostpassword = { sendErrorMsg : t('core', 'Couldn\'t send reset email. Please contact your administrator.'), sendSuccessMsg : t('core', 'The link to reset your password has been sent to your email. If you do not receive it within a reasonable amount of time, check your spam/junk folders.
If it is not there ask your local administrator.'), encryptedMsg : t('core', "Your files are encrypted. If you haven't enabled the recovery key, there will be no way to get your data back after your password is reset.
If you are not sure what to do, please contact your administrator before you continue.
Do you really want to continue?") + ('
') + '
', resetErrorMsg : t('core', 'Password can not be changed. Please contact your administrator.'), init : function() { $('#lost-password').click(OC.Lostpassword.resetLink); $('#reset-password #submit').click(OC.Lostpassword.resetPassword); }, resetLink : function(event){ event.preventDefault(); if (!$('#user').val().length){ $('#submit').trigger('click'); } else { if (OC.config['lost_password_link']) { window.location = OC.config['lost_password_link']; } else { $.post( OC.generateUrl('/lostpassword/email'), { user : $('#user').val() }, OC.Lostpassword.sendLinkDone ); } } }, sendLinkDone : function(result){ var sendErrorMsg; if (result && result.status === 'success'){ OC.Lostpassword.sendLinkSuccess(); } else { if (result && result.msg){ sendErrorMsg = result.msg; } else { sendErrorMsg = OC.Lostpassword.sendErrorMsg; } OC.Lostpassword.sendLinkError(sendErrorMsg); } }, sendLinkSuccess : function(msg){ var node = OC.Lostpassword.getSendStatusNode(); // update is the better success message styling node.addClass('update').css({width:'auto'}); node.html(OC.Lostpassword.sendSuccessMsg); }, sendLinkError : function(msg){ var node = OC.Lostpassword.getSendStatusNode(); node.addClass('warning'); node.html(msg); OC.Lostpassword.init(); }, getSendStatusNode : function(){ if (!$('#lost-password').length){ $('

').insertBefore($('#remember_login')); } else { $('#lost-password').replaceWith($('

')); } return $('#lost-password'); }, resetPassword : function(event){ $('#password').parent().removeClass('shake'); event.preventDefault(); if ($('#password').val() === $('#retypepassword').val()){ $('#reset-password #submit').addClass('icon-loading-small'); $.post( $('#password').parents('form').attr('action'), { password : $('#password').val(), proceed: $('#encrypted-continue').is(':checked') ? 'true' : 'false' }, OC.Lostpassword.resetDone ); } else { //Password mismatch happened $('#password').val(''); $('#retypepassword').val(''); $('#password').parent().addClass('shake'); $('#message').addClass('warning'); $('#message').text(t('core', 'Passwords do not match')); $('#message').show(); $('#password').focus(); } if($('#encrypted-continue').is(':checked')) { $('#reset-password #submit').hide(); $('#reset-password #float-spinner').removeClass('hidden'); } }, resetDone : function(result){ var resetErrorMsg; if (result && result.status === 'success'){ $.post( OC.webroot + '/', { user : window.location.href.split('/').pop(), password : $('#password').val() }, OC.Lostpassword.redirect ); } else { $('#reset-password #submit').removeClass('icon-loading-small'); if (result && result.msg){ resetErrorMsg = result.msg; } else if (result && result.encryption) { resetErrorMsg = OC.Lostpassword.encryptedMsg; } else { resetErrorMsg = OC.Lostpassword.resetErrorMsg; } OC.Lostpassword.resetError(resetErrorMsg); } }, redirect : function(msg){ if(OC.webroot !== '') { window.location = OC.webroot; } else { window.location = '/'; } }, resetError : function(msg){ var node = OC.Lostpassword.getResetStatusNode(); node.addClass('warning'); node.html(msg); }, getResetStatusNode : function (){ if (!$('#lost-password').length){ $('#reset-password .submit-wrap').prepend($('

')); } else { $('#lost-password').replaceWith($('

')); } return $('#lost-password'); } }; $(document).ready(function () { OC.Lostpassword.init(); $('#password').keypress(function () { /* The warning message should be shown only during password mismatch. Else it should not. */ if (($('#password').val().length >= 0) && ($('#retypepassword').length) && ($('#retypepassword').val().length === 0)) { $('#message').removeClass('warning'); $('#message').text(''); } }); });