Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Creating a seperate login page

Started by Alex Han 7 years ago · 0 replies · 597 views
7 years ago

I made a page to login to my site. The registration part is working, then I made a page to login and it dosen't seem to be working. I used the admin panel and typed this into the Frontend and I want to know what I have to change to create a working login page:

YAML
title: Login

login_redirect_here: false

forms:
  login:
    action:
    method: post

    fields:
        username:
          type: text
          id: username
          placeholder: Username
          label: PLUGIN_LOGIN.USERNAME_EMAIL
          autofocus: true

        password:
          type: password
          id: password
          placeholder: Password
          label: PLUGIN_LOGIN.PASSWORD

  login-twofa:
    action:
    method: post

    fields:
      2fa_instructions:
          type: display
          markdown: true
          content: PLUGIN_LOGIN.2FA_INSTRUCTIONS
      2fa_code:
          type: text
          id: twofa-code
          autofocus: true
          placeholder: PLUGIN_LOGIN.2FA_CODE_INPUT 

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Vladimir Novak, 2 weeks ago
3 294 2 weeks ago
Plugins · by Mathieu Lecouturier, 3 weeks ago
3 277 3 weeks ago
Plugins · by Slebeig, 2 months ago
1 403 2 months ago
Plugins · by Rene, 2 months ago
2 574 2 months ago
Plugins · by Xavier, 3 months ago
2 490 3 months ago