Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Creating a seperate login page

Started by Alex Han 8 years ago · 0 replies · 786 views
8 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 DrPen, 1 month ago
2 478 1 month ago
Plugins · by renedebaaij, 2 months ago
1 351 1 month ago
Plugins · by Thomas, 1 month ago
1 375 1 month ago
Plugins · by complanar, 2 months ago
6 699 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 642 2 months ago