There is a little flaw in it. If You remove username, on login page You should change label name to "E-mail", so people would know what should they input there. The simplest way form my point of view is to generate translation (app->Resources-> make file FOSUserBundle.lang.yml (lang is Your language eg. en) and override existing translation (security: login: username: and change text to E-mail which is our user name :)
4 Comments
Very useful, thank you for this!
Fan_tas_tic
many many thanks, a very short trick for a huge problem
There is a little flaw in it. If You remove username, on login page You should change label name to "E-mail", so people would know what should they input there. The simplest way form my point of view is to generate translation (app->Resources-> make file FOSUserBundle.lang.yml (lang is Your language eg. en) and override existing translation (security: login: username: and change text to E-mail which is our user name :)
Nice catch! and I like your solution, but if you manually created the login form, then you can just tweak that label in the template :)
Cheers!
"Houston: no signs of life"
Start the conversation!