No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Best approach to display login form errors

    Framework
    1
    2
    370
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      murrah last edited by

      Hi. Very new to both Vue and Quasar and have made great progress.

      I was wondering how to go about displaying an error message on a login form after the user has submitted but then the server says the password is incorrect.

      I added an errorMessage property bound to a div on the form template and set it when the server returns the error message (which works) but I was wondering if there is a more elegant solution?

      I did try a computed rules bind which works except of course the validation runs before the server returns the error. I could not find a way to “throw” an error on either the form or (say) the password field after the submission and have it trigger the validation in order to get the nice message showing up. I am probably missing something obvious here.

      Thanks,
      Murray

      1 Reply Last reply Reply Quote 0
      • M
        murrah last edited by

        Ahhh… I was looking in the wrong place. Looking at the QInput docs now. Sorry.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post