Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9212127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:27:15+00:00 2026-06-18T01:27:15+00:00

I want to add Login Section to the registration page.. Basically, the idea is,

  • 0

I want to add Login Section to the registration page.. Basically, the idea is, when the user goes to the registration page, the login section will be also available on the same page, in-case the user realizes that he already has an account. I am trying this but its not working…

//Registration_content.html.twig

<form action="{{ path('fos_user_registration_register') }}" {{ form_enctype(form) }} method="POST" class="fos_user_registration_register">

        {{ form_errors(form.email.first) }}
        {{ form_errors(form.plainPassword.first) }}

        {{ form_widget(form.email.first)}}
        {{ form_widget(form.email.second)}}

        <br />

        {{ form_widget(form.plainPassword.first) }}
        {{ form_widget(form.plainPassword.second) }}

        <br />

        {{ form_widget(form.country) }}

        <br />

        {% for choiceFormView in form.Position %}
            {{ form_widget(choiceFormView) }} {{ form_label(choiceFormView) }}<br />
        {% endfor %}

        {% for choiceFormView in form.notification %}
            {{ form_widget(choiceFormView) }} {{ form_label(choiceFormView) }}<br />
        {% endfor %}

        {{ form_rest(form) }}

    <div>
        <input type="submit" value="{{ 'registration.submit'|trans({}, 'FOSUserBundle') }}" />
    </div>
</form>

What i want to add to this page is, the login page contents. But of course it is not working;

 {% block fos_user_content %}
    {% if error %}
        <div>{{ error|trans({}, 'FOSUserBundle') }}</div>
    {% endif %}

    <form action="{{ path("fos_user_security_check") }}" method="post">
        <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />

        <label for="username">{{ 'security.login.username'|trans({}, 'FOSUserBundle') }}</label>
        <input type="text" id="username" name="_username" value="{{ last_username }}" required="required" />

        <br>
        <br>

        <label for="password">{{ 'security.login.password'|trans({}, 'FOSUserBundle') }}</label>
        <input type="password" id="password" name="_password" required="required" />

        <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
        <label for="remember_me">{{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }}</label>

        <input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}" />
    </form>

What is the right way to approach this… I will have the login section on many pages as well. So the real question seems to be, how do I use fosuser login section on the other pages?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:27:17+00:00Added an answer on June 18, 2026 at 1:27 am

    Just put

    {% render "FOSUserBundle:Security:login" %}
    

    in any template of your page where you want the login form to be rendered.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my login page I creat FA cookie. I want to add to it
I want to add user session support to my application. Since reloading the page
I want to add a login form to CMs page in Magento, I have
I have a tabbar app and I want to add login window that will
I want add my custom sidebar next right column all page. Please check this
I want to add a redirection URL to my login forms action (as a
I want to add to the context a parameter, so when login is called
I want to add login for registered users in my website. How shall I
Background: I want to add a login to my small site, which is an
I want to extend additional user registration fields, and other tutorial suggested the way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.