Search

Hi,

I've got a question about the controls of the Members login form.

How I can check if the username or password I've insert is correct??! Because now if I write something wrong and I send the form, it reload the page without error. I want to display something like "user and pass incorrect"

The form syntax I use is:

form method="post" autocomplete='off'>

            <input name="fields[nome]" type="text" placeholder="Username" />

            <input name="fields[password]" type="password" placeholder="Password" />

            <input name="redirect" type="hidden" value="{$current-path}" />
            <input name="member-action[login]" type="submit" value="Login" />
        </form>

Thank you Davide

Have a look (or better use) the Members Forms utilities by michael-e. They provide a complete set of templates for your member form needs.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details