New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

user:reset_password_form badness

Pete Griffiths January 27, 2021 by Pete Griffiths

Folks, I'm having trouble with password resets. This is my view:

{{ user:reset_password_form }}

{{ if success }}
    <div class="success-header">
        <p>Hooray. Your password has been reset so you can now head to the <a href="/login">login page</a> and try it out.</p>

{{ elseif url_invalid }}

    <div class="error-header">
        <p>This reset URL is invalid. Go <a href="/">home</a>.</p>

{{ else }}

        {{ if error:email }}
            <span class="error">{{error:email}}</span>
        {{ /if }}
        <legend>EMail Address</legend>
        <input type="text" name="email" />

        {{ if error:password }}
            <span class="error">{{error:password}}</span>
        {{ /if }}
        <legend>New Password</legend>
        <input type="password" name="password" />

        {{ if error:password_confirmation }}
            <span class="error">{{error:password_confirmation}}</span>
        {{ /if }}
        <legend>Please Confirm Your New Password</legend>
        <input type="password" name="password_confirmation" />

    <button type="submit" class="btn btn-primary">Save</button>

{{ /if }}

{{ /user:reset_password_form }}

Whatever text I type into the boxes the form just re-directs to the home page. No errors in laravel.log.

What am I doing wrong?

Answered by Jack McDade!
>>>>>>> Answered <<<<<<<
3 Replies