     on_accept: (body, options) ->
       password = body.find("#password_input").val()
       repeat_password = body.find("#repeat_password_input").val()
-      if (password.length < 6)
-        @show_error("Password must be at least 6 characters long")
+      if (password.length < 5)
+        @show_error("Password must be at least 5 characters long")
         return
       if (password != repeat_password)
         @show_error("Passwords don't match")


      password = body.find("#password_input").val()
      repeat_password = body.find("#repeat_password_input").val()
      if (password.length < 6)
        @show_error("Password must be at least 6 characters long")
        return
      if (password != repeat_password)
        @show_error("Passwords don't match")

          @do_hide()
          app.flash
            title: "Password successfully changed."
            hide_after: 2000
        , error: =>
            @do_hide()
            app.flash
