Default name in Drupal user login form? - drupal

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.

Related

Login without password FOSUserBundle Symfony3

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?

How to customise wordpress user authentication

I have a old website, which allow people to register and do staff. Say it is www.example.com.
Now I added a subdomain, reviews.example.com and want my users to write reviews.
The reviews.example.com is done in wordpress which works perfectly.
However, as my users already registered with the old site, ideally I want my user to use their old username and password to login to the review website. Also I would like new users to continue register in the old site and I could just write another query to insert the new user's username and password into wordpress's user table.
To custom login process for wordpress, can I apply a callback somewhere, so when wordpress login failed, I will run my custom query and create and return a wp_User object?
Or it is better to change the login code in wordpress directly? I searched wordpress code and saw the code where I could hack to put my own login logic.
Then one solution can be done
i.e
I am assuming that you made the username field and the password field
of registering and the password is visible for you.
Now once you make the wordpress install at your blog.website.com and then you need to copy the sql query which have import for your previous_users and paste in your SQL query of phpmyadmin after that you just need to add the same feild in your database as the wp-users feilds are containing then after that make your users password as MD5 crypt for that you just need to change the password type feild to MD5 crypt and your all users will be able to sign-in there.
I hope i Am clear to you.
Any Doubt you can Comment.

How to add forgot password link in WP-Members plugin?

I use the WP-Members plugin to register users on a WordPress site but I have no idea how to add a forgot password link in login form?
You can add the forgot password using the shortcode:
password
[wpmem_form password]
The password parameter will generate a password reset form for users who are not logged in and a change password form for logged in users. It can be used in conjunction with the logged-in and/or logged-out status shortcodes as well.
NOTE: These functions are also a component of the [wpmem_profile] shortcode, so if you have a user profile page already established, you do not need this page as well. This shortcode is for site admins that might desire a more granular level of control over how these elements are used.
Did you tried
Lost Password
The plugin adds a lost password link automatically when the location of the User Profile page is set in the plugin's main options.
As said by bulterblog when u create a new page and add [wpmem_profile] shortcode it will automatically add the forgot password link to the pages/post which you have blocked.

How to go on administration page in NopCommerce CMS

I have logged in using the information provided during installation by using the normal login page but it says
Login was unsuccessful. Please correct the errors and try again.
The credentials provided are incorrect
From where i can go to administrator page link???
First of all check the [Customer] table in your database. check the user name or email id that are correct or not...
If they are correct then use forgot password link at the login page.
Might be your login name or password was wrong....
Open the table Customer in SQL database and find the Built-in system user whose email = "builtin#search_engine_record.com".
The Id is 7 in nopCommerce 4.0.
By default this user is active.
Set it Active = False.
Login and you will see the Administrator Link at the top of the page.
You can try to reset the password with through SQL in Customer Table, please make sure you make PasswordSalt as Null. After resetting the password. Refresh your page and enter password and after you logged in then you can see a link to Administration on top

drupal registration redirect and user details

After registration the user is redirected to a welcome page . How to get display the respective user details in redirected(welcome) page?.
for ex: welcome username . how to get user name in redirected page
When a user is logged in, you always have the global $user object available. So all you really need to do, is to access it and insert the name.
I'm not sure what page your users are redirected to, you can change that, but to alter the output you only need the normal theme/template overwrites that you can do with Drupal.
We do this using the Profile, Blocks, and Views modules. A view could include only the logged in username as you require, but ours also includes several profile fields that logged in users may choose to complete. The view has a block display - we configure that block to display only on certain page paths through the block administration screens.
You can use actions, and triggers.
Using them, you can define an action (show message to the user) that is triggered when a user logs in. The action to show a message to the user allows you to use tokens; one of them is for the username.

Resources