[Vuejs]-Laravel (vuejs and vuex) Too many arguments to function in callResetPassword

0👍

You need to provide your javascript call or your api call in genereal, so somewhere in your script you are calling this method callResetPassword without passing any parameters.

In this case you need to call the method callResetPassword($user, $password) with your $user and $password

You should have something like this:

    requestResetPassword() {
        this.$http.post("/auth/reset/password/", {
            token: this.$route.params.token,
            email: this.email,
            password: this.password,
            password_confirmation: this.password_confirmation
        .then(result => {
            this.response = result.data;
            console.log(result.data);
        })
        .catch(error => {
            console.error(error);
        });

Leave a comment