Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

No Username-Field on Login-Page

Started by Fux Ing 6 years ago · 0 replies · 631 views
6 years ago

Hallo!
Im trying to get the login working, but I have the problem, that on the LoginPage there is no field for the username!

image|690x306

This is my login form.de.md:

YAML
---
title: Login
visible: false
login_redirect_here: false
forms:
    login:
        action: null
        method: post
        fields:
            username:
                type: text
                id: username
                placeholder: PLUGIN_LOGIN.USERNAME_EMAIL
                label: PLUGIN_LOGIN.USERNAME_EMAIL
                autofocus: true
            password:
                type: password
                id: password
                placeholder: PLUGIN_LOGIN.PASSWORD
                label: PLUGIN_LOGIN.PASSWORD
    login-twofa:
        action: null
        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
---

<p># User Login</p>
last edited 10/20/20 by Fux Ing

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 1 week ago
4 181 2 days ago
General · by lynbor, 6 days ago
2 122 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 1 week ago
1 124 1 week ago
General · by Andy Miller, 3 weeks ago
0 248 3 weeks ago