Login without password FOSUserBundle Symfony3 - symfony

I want to authorize a user without using a password. Authorization will only take place on the field username. Is it possible to do this in FOSUserBundle? I know that you can write a custom UserProvider, but my goal is to do it with FOSUserBundle!

In login form, make the password field hidden (instead of type="password"), with a value of "whatever" (which will be the password of all the users).
Try if it is possible?

Related

How can i change the login component so that it uses a new field in the registration form instead the username or email (i.e account number)?

So basically, the title. How can i change the login component so that it uses a new field in the registration form instead the username or email, my client wants to use an account number that the users type in the registration form. So the login would be Account Number/password.
Thank you in advance
You can use "Wp membership plugin" and in registration page username field, you can customize and add new field like Account No.

HWIOAuthBundle permitting the user to add a password before submitting the data retrieved from facebook

there! I have just integrated HWIOAuthBundle with my Symfony2 application, but I would like to permit the user to enter a password, which he will use for my website login beside the email that will be retrieved from facebook before submitting the form that persists the data(email from facebook and password entered by the user) to my database. I would like to let the user submit this form and not do it automatically as it is done now,,Is there a class in the bundle that I could modify or override to achieve this? I hope I made myself clear enough,,Thanks!!

GeneratePasswordResetToken in AspNetSqlMembershipProvider

In SimpleMembershipProvider that comes with ASP.NET Razor it's possible to call GeneratePasswordResetToken, then email generated token to the user's email. Then, when the user clicks on the URL, it takes them to a page to reset password.
What is the equivalent workflow in AspNetSqlMembershipProvider? Is it possible to generate a token that can then be used to reset the password?
Thanks.

Login control with custom database

I have a problem!
I have a database.have two field username and password.
I use Login Control in VS.
And now i want use login control connect to my database.
how i can do it!
You have to setup a custom membership provider and configure it in the web.config file. Read this: http://www.asp.net/web-forms/videos/how-do-i/how-do-i-create-a-custom-membership-provider
The login control uses the membership provider's ValidateUser method to check whether a user is valid.
OR: override LoggingIn event, override the default behavior to manually lookup the user by user ID and password. This approach does not need a membership provider.

Default name in Drupal user login form?

Is is possible to pre-enter the username via URL in the Drupal user page, e.g.:
www.example.com/user?name=peter
such that "peter" is filled automatically in the Name filed and so the user is required to enter the password only.
Yes, the Prepopulate module is written to handle that kind of thing.

Resources