# Module: vertx-web-js/form_login_handler

## vertx-web-js/form_login_handler

Source:
  - form_login_handler.js, line 3

### Classes

FormLoginHandler

### Methods

#### <static> FormLoginHandler.create(authProvider, usernameParam, passwordParam, returnURLParam, directLoggedInOKURL) → {FormLoginHandler}

  Create a handler

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `authProvider` | AuthProvider | the auth service to use
  `usernameParam` | string | the value of the form attribute which will contain the username
  `passwordParam` | string | the value of the form attribute which will contain the password
  `returnURLParam` | string | the value of the session attribute which will contain the return url
  `directLoggedInOKURL` | string | a url to redirect to if the user logs in directly at the url of the form login handler without being redirected here first

  Source:
    - form_login_handler.js, line 122

  ##### Returns:

  the handler
  Type
    FormLoginHandler