FEU login form broken

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
ArneDB
Forum Members
Forum Members
Posts: 13
Joined: Mon Jan 15, 2018 12:43 pm

FEU login form broken

Post by ArneDB »

I have the following code for a FEU login form:
https://i.gyazo.com/435528e35ce2aa07cd0 ... 7dd678.png

and it translates in these errors on the webpage:
https://i.gyazo.com/81bfd7dfcf71da6d958 ... a3fcd8.png

How can I change the form so that these errors disappear?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: FEU login form broken

Post by velden »

A lot of information is missing like complete system information and whether you have been upgrading from older version(s) of CMSMS and/ or modules.

Below you'll find the default login form template as it came with FEU 2.8:

Code: Select all

{* login form template *}
{* this is a sample template, feel free to customize it *}
{if isset($alt_loginform)}
  <div class="row" id="altlogin">{$alt_loginform}</div><br/>
{/if}

<fieldset id="loginform">
  <legend>{$FrontEndUsers->Lang('prompt_normallogin')}:</legend>
  {$startform}

  {*
   * a simple honeypot captcha....if this field has a value after submit an error will be thrown
   * deleting this field will simply disable the honeypot.
   * it is important that the field be hidden with CSS rather than using a hidden input field.
   *}
  <input type="text" name="{$actionid}feu__data" value="" style="display: none;"/>

  {if $error}<div class="alert alert-danger">{$error}</div>{/if}
  <div class="row">
    <p class="col-md-4 text-right"><label for="feu_username">*{$prompt_username}:</label></p>
    <p class="col-md-8">
      <input type="{if $username_is_email}email{else}text{/if}" id="feu_username" name="{$fldname_username}" value="{$username}" size="{$username_size}" maxlength="{$username_maxlength}" {if !$username_is_email}autocorrect="off" autocapitalize="off"{/if} required/>
    </p>
  </div>
  <div class="row">
    <p class="col-md-4 text-right"><label for="feu_password">*{$prompt_password}:</label></p>
    <p class="col-md-8">
      <input type="password" id="feu_password" name="{$fldname_password}" value="{$password}" size="{$password_size}" maxlength="{$password_maxlength}" required/>
    </p>
  </div>
  {if isset($captcha)}
  <div class="row">
    <p class="col-md-4 text-right">{$captcha_title}</p>
    <div class="col-md-8">{$captcha}
      {if $need_captcha_input}
      <div class="row">
        <input type="text" name="{$actionid}feu_input_captcha" size="10"/>
      </div>
      {/if}
    </div>
  </div>
  {/if}

  {if isset($prompt_rememberme)}
  <div class="row">
    <p class="col-md-4"></p>
    <p class="col-md-8">
      <label><input type="checkbox" name="{$actionid}feu_rememberme" value="1" {if $rememberme==1}checked{/if}/> {$prompt_rememberme}</label>
    </p>
  </div>
  {/if}

  <div class="row">
    <p class="col-md-4"></p>
    <p class="col-md-8">
      <button class="btn btn-active" name="{$actionid}feu_submit">{$FrontEndUsers->Lang('login')}</button>
    </p>
  </div>

  {if isset($url_lostun) || isset($url_forgot)}
  <div class="row">
    <p class="col-md-4"></p>
    <p class="col-sm-8">
      {if isset($url_forgot)}
        <a href="{$url_forgot}" title="{$FrontEndUsers->Lang('info_forgotpw')}">{$FrontEndUsers->Lang('forgotpw')}</a>
      {/if}
      {if isset($url_lostun)}
        | <a href="{$url_lostun}" title="{$FrontEndUsers->Lang('info_lostun')}">{$FrontEndUsers->Lang('lostusername')}</a>
      {/if}
    </p>
  </div>
  {/if}
  {$endform}
</fieldset>
Post Reply

Return to “Modules/Add-Ons”