namespace("account.multiFactorAuthentication");account.multiFactorAuthentication.multiFactorAuthenticationView=Backbone.View.extend({el:"#multiFactorAuthentication",events:{"submit form":"onFormSubmit","click #resendCodeButton":"onResendCodeButtonClicked"},initialize:function(n){_.extend(this,n)},render:function(){return this.bindToModel(),this},onFormSubmit:function(n){n.preventDefault();this.submitForm({dontShowSuccessAlert:!0})},onResendCodeButtonClicked:function(){Backbone.invoke(this.sendMultiFactorAuthenticationCodeUrl,this.model.pick("login","password"),{success:function(){Alert.success("Verification code has been sent successfully.")}})}})