Code Monkey home page Code Monkey logo

hairu's Introduction

Hairu Build Status SensioLabs Insight Latest Stable Version Total Downloads Latest Unstable Version License

Flexible login/logout form based on Extbase/Fluid to replace the felogin extension shipped with TYPO3 CMS.

ๅ…ฅใ‚‹ (hairu, Japanese) means "enter"

Installation

This extension is installable from various sources:

  1. From the TYPO3 Extension Repository

  2. From Github

  3. Via Composer:

     composer require pagemachine/hairu
    

After installation a new content element Authentication form will be available in the Form elements section. Make sure to also include the static template.

Configuration

After including the static template a few options will be available in the Template Constant Editor for customization.

Make sure you set at least the Default storage PID to the page where your frontend user records are stored.

You can also use the stdWrap property on any settings value for custom processing. Example for easy translation of the password reset mail subject:

plugin.tx_hairu {
  settings {
    passwordReset {
      mail {
        subject.stdWrap.data = LLL:.../locallang.xlf:passwordReset.mail.subject
      }
    }
  }
}

Password reset validation

The validation rules applied within the password reset process can be customized freely through TypoScript. Example from the default configuration:

plugin.tx_hairu {
  // ...
  mvc.validation {
    // Validation of Authentication controller action arguments
    Authentication {
      // ...
      completePasswordReset {
        password {
          1 {
            type = StringLength
            options {
              minimum = 5
            }
          }
        }
      }
    }
  }
}

You can use any validator type as long as Extbase can resolve it. In the example the builtin StringLengthValidator is set with a minimum length of 5.

The following formats for the validator type are supported:

  • Extbase builtin validators: ValidatorType
  • Fully qualified class name: Vendor\Package\Validation\Validator\CustomValidator
  • Shorthand syntax: Vendor.Package:CustomValidator (internally resolved to the fully qualified class name)

Issues

Found a bug? Need a feature? Let us know through our issue tracker.

hairu's People

Contributors

mbrodala avatar firegate666 avatar mabahe avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.