Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[make:auth] use userIdentifier instead of username on login_form #903

Merged
merged 1 commit into from
Apr 26, 2022
Merged

[make:auth] use userIdentifier instead of username on login_form #903

merged 1 commit into from
Apr 26, 2022

Conversation

seb-jean
Copy link
Contributor

Change username to userIdentifier

@@ -11,7 +11,7 @@
<?php if ($logout_setup): ?>
{% if app.user %}
<div class="mb-3">
You are logged in as {{ app.user.username }}, <a href="{{ path('app_logout') }}">Logout</a>
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Logout</a>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs to be conditional, right? Based on what version of Symfony the code is being generated for?

Looks like a legit bug though :)

@jrushlow jrushlow added the Status: Needs Work Additional work is needed label Jun 24, 2021
@jrushlow jrushlow added the Bug Bug Fix label Mar 3, 2022
@jrushlow jrushlow changed the title Update login_form.tpl.php [make:auth] use userIdentifier instead of username on login_form Apr 26, 2022
@jrushlow jrushlow added the Status: Reviewed Has been reviewed by a maintainer label Apr 26, 2022
Copy link
Collaborator

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome Thanks @seb-jean.. This will work nicely with #1104 and we won't need to use a conditional anymore.

@jrushlow jrushlow merged commit e1b781d into symfony:main Apr 26, 2022
@jrushlow
Copy link
Collaborator

fixes #1082

@jrushlow jrushlow mentioned this pull request May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug Fix Status: Needs Work Additional work is needed Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants