sandywp / plugins / clean-login

Clean Login

4.7 out of 5 stars. 4.7 144 reviews

Frontend login, registration, profile and password reset forms with blocks or shortcodes. WPML certified, reCAPTCHA and WooCommerce compatible.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v2.0.3 5,000+ installs WP 5.5+

your-sandbox.sandywp.com/wp-admin
Clean Login running inside a SandyWP sandbox

What you get inside

8 screens
  • Login form on the front end, with the look of your theme

  • Registration form with first and last name, CAPTCHA and terms and conditions

  • Every form is a block, with a live preview in the editor

  • Profile editor on the front end

  • Change password form with the strength meter

  • Forgot password form

  • Logged-in preview with the links to the profile and to log out

  • Settings: the page of each form and the options

About this plugin

Try it on a free demo site: https://demo.tastewp.com/clean-login

Move login, registration, password reset and profile editing out of wp-login.php and into the pages of your own site. Add a block or a shortcode to any page and the form appears with the look of your theme. The forms find each other and link to each other on their own, and wp-login.php and wp-admin can send your visitors to your new login page.

✅ Tested with WordPress 7.1

✅ More than 5,000 active installations

✅ 100% free, no premium version, no locked features

🆕 New in 2.0

  • Blocks for every form: Login form, Register form, Restore password form, Edit profile form, Change password form and Logout link, with a live preview in the block editor
  • Send wp-login.php and wp-admin to your login page, with checks for other plugins and server rules before it is enabled, and an emergency switch in wp-config.php so you never get locked out
  • Safer password reset links: they work only once and expire like the ones of WordPress
  • WPML: the texts of the settings are translated in String Translation and every language keeps its own form pages

🔑 Login

  • Login form with show/hide password and “Remember me”
  • Logged-in preview with the avatar, a link to edit the profile and a logout link
  • Redirect after log in and after log out to any URL
  • Optional redirection of wp-login.php and wp-admin to your login page
  • Use the email address as username
  • Customisable “Lost password?” link text
  • Timestamp option to avoid problems with page cache

📝 Registration

  • Registration form with optional first and last name
  • Letters CAPTCHA, Google reCAPTCHA and an invisible honeypot against spam
  • Terms and conditions checkbox with a link to your terms page
  • Email validation before the account is active, or automatic login after registration
  • Standby role: new users wait until an administrator approves them
  • Let users choose their role from a list you control, or set it with [clean-login-register role="..."]
  • Password complexity rules and a customisable welcome email
  • Redirect after registration

🔒 Password and profile

  • Forgot password form that sends a one-time reset link
  • Change password form with an animated strength meter (Weak / Fair / Good / Strong)
  • Profile editor on the front end: first and last name, email and password
  • Redirect after a password change or a reset request

🛡️ Control the dashboard

  • Hide the admin bar for the roles you choose
  • Block the dashboard for users who are not administrators
  • Login and registration pages are marked noindex and left out of the sitemap

🧩 Blocks or shortcodes

Every form is a block in the “Clean Login” category of the block editor, and also a shortcode:

  • [clean-login]: login form, or the logged-in preview
  • [clean-login-register]: registration form
  • [clean-login-restore]: forgot password form
  • [clean-login-edit]: profile editor
  • [clean-login-change-password]: password change form with strength meter
  • [clean-login-logout]: logout link, with an optional text attribute

Copy any template to your-theme/clean-login/ to change its HTML. Your changes survive the updates.

🔌 Works with your plugins

  • WPML: officially certified, forms follow the language of the visitor
  • WooCommerce: works alongside WooCommerce without conflicts
  • Yoast SEO, Rank Math and AIOSEO: the form pages are kept out of search results
  • Multisite: settings and redirection per site
  • Import and export users and customers: the login link of its welcome emails takes your imported users to your Clean Login page

💬 What users say

“I needed a lightweight plugin with some straightforward redirects and the option for users to create their own (strong) passwords. I’m really happy with this solution.”
— Maarten Visman

“It’s simply fast and clean and it works every time!”
— grabe

“I needed a simple plugin for login and logout and this plugin solved my purpose. Most importantly they added the Logout feature on my request and without any delay.”
— anjanphukan

Credits

Clean Login was created by Alberto Hornero in 2014 and is maintained by Codection.

More plugins by Codection

Questions

How do I create a custom login page?

Install Clean Login, create a new page, and add the “Login form” block (or the shortcode [clean-login]) to its content. Publish the page — that’s it. Your custom frontend login form is live.

Can I use blocks instead of shortcodes?

Yes. Every form has its own block in the “Clean Login” category of the block editor: Login form, Register form, Restore password form, Edit profile form, Change password form and Logout link. The editor shows a live preview of each form. Pages with blocks are detected exactly like pages with shortcodes, so the forms link to each other and the plugin status in Settings → Clean Login shows them. The forms are still configured in Settings → Clean Login; shortcode attributes such as role, template, show_email or text are only available with the shortcodes for now.

Can I send wp-login.php and wp-admin to my login page?

Yes. Go to Settings → Clean Login and enable “Login page redirection”. Visitors who open wp-login.php, or wp-admin without being logged in, are sent to your login page and, after logging in, back to the page they wanted to open. Before enabling it the plugin checks that no other plugin, theme or server rule hides or redirects wp-login.php, and it is not enabled while any check fails. Logout, password reset links, password protected posts and the “session expired” box of the dashboard keep using wp-login.php. In a multisite network it is set per site.

I enabled the login page redirection and I cannot log in. What can I do?

Add define( 'CLEAN_LOGIN_DISABLE_LOGIN_REDIRECT', true ); to wp-config.php: wp-login.php works as usual again (in the whole network, in multisite). Fix the login page, check it in a private window and remove the line. You can also deactivate Clean Login by renaming its folder via FTP.

Can I create a custom user registration page?

Yes. Create a page with the shortcode [clean-login-register]. Make sure user registration is enabled in WordPress Settings → General → Membership.

How does the password reset / forgot password page work?

Add [clean-login-restore] to a page. Users enter their username or email and receive a reset link. If you also have a [clean-login-change-password] page set up, they will be redirected there to set their own password; if not but you have a [clean-login-edit] page, they will be redirected there; otherwise a new password is generated and shown to them.

Can users change their password from the frontend?

Yes — use [clean-login-change-password] for a focused password change form, or [clean-login-edit] for a full profile editor that also includes name, email and password fields.

Is there a password strength indicator?

Yes. The [clean-login-change-password] form includes an animated strength meter with four levels (Weak, Fair, Good, Strong).

4.7

144 reviews

  • 5 ★ 124
  • 4 ★ 10
  • 3 ★ 4
  • 2 ★ 3
  • 1 ★ 3

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.