A whitelabeled and modernized wp-login.php

Overview

Modern Login

Latest Stable Version Total Downloads

Here lives a simple mu-plugin to whitelabel and modernize wp-login.php. No admin panels, no bloat – just a simple filter to optionally customize the CSS properties with your color palette.

Screenshot

Requirements

Installation

Bedrock

Install via Composer:

$ composer require log1x/modern-login

Manual

Download the release .zip and install into wp-content/plugins.

Customization

To customize the color palette, simply pass an array containing one or more of the colors you would like to change to the login_color_palette filter:

add_filter('login_color_palette', function () {
    return [
        'brand' => '#0073aa',
        'trim' => '#181818',
        'trim-alt' => '#282828',
    ];
});

Text color will automatically be inverted to #fff or #111 determined by the relative luminance of the element's background color.

Changing the Logo

The logo uses the first letter of the login header text set by WordPress. You can customize this using the login_headertext filter:

/**
 * Change the WordPress login header to the blog name.
 *
 * @return string
 */
add_filter('login_headertext', function () {
    return get_bloginfo('name');
});

Development

Modern Login is built using TailwindCSS and compiled with Laravel Mix.

$ yarn install
$ yarn run start

Bug Reports

If you discover a bug in Modern Login, please open an issue.

Contributing

Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.

License

Modern Login is provided under the MIT License.

Comments
  • Login button doesn't respect text color

    Login button doesn't respect text color

    Problem

    When a light background (brand) color is used, the login button text is difficult to read.

    Example

    Applying a palette with the follow:

    add_filter('login_color_palette', function () {
        return [
            'text' => '#999',
            'brand' => '#F0F0F4',
            'trim' => '#040437',
            'trim-alt' => '#fff',
        ];
    });
    

    will produce this result:

    Screenshot 2020-02-06 16 47 46

    Possible solution

    Include styles so that the login button text respects the text palette value.

    opened by matbrady 2
  • Admin password reminder not visible

    Admin password reminder not visible

    Problem

    When a dark color is used for the trim value, the admin password reminder is eligible. Some details related to the admin password reminder can be found here. This error occurs with version 1.0.5

    Example

    The markup for this form includes the following. This should include the class names needed to adjust the styles appropriately.

    <form class="admin-email-confirm-form" name="admin-email-confirm-form"
      action="https://redacted/wp/wp-login.php?action=confirm_admin_email" method="post">
      <input type="hidden" id="confirm_admin_email_nonce" name="confirm_admin_email_nonce" value="4aa4746d3d" /><input
        type="hidden" name="_wp_http_referer"
        value="https://redacted%2Fwp%2Fwp-admin%2F&amp;action=confirm_admin_email&amp;wp_lang=en_US" />
      <input type="hidden" name="redirect_to" value="https://redacted/wp/wp-admin/" />
    
      <h1 class="admin-email__heading">
        Administration email verification </h1>
      <p class="admin-email__details">
        Please verify that the <strong>administration email</strong> for this website is still correct. <a
          href="https://wordpress.org/support/article/settings-general-screen/#email-address" rel="noopener noreferrer"
          target="_blank">Why is this important?<span class="screen-reader-text"> (opens in a new tab)</span></a> </p>
      <p class="admin-email__details">
        Current administration email: <strong>[email protected]</strong> </p>
      <p class="admin-email__details">
        This email may be different from your personal email address. </p>
    
      <div class="admin-email__actions">
        <div class="admin-email__actions-primary">
          <a class="button button-large"
            href="https://redacted/wp/wp-admin/options-general.php?highlight=confirm_admin_email">Update</a>
          <input type="submit" name="correct-admin-email" id="correct-admin-email"
            class="button button-primary button-large" value="The email is correct" />
        </div>
        <div class="admin-email__actions-secondary">
          <a
            href="https://redacted%2Fwp%2Fwp-admin%2F&#038;action=confirm_admin_email&#038;remind_me_later=c5834aa3ec">Remind
            me later</a>
        </div>
      </div>
    </form>
    

    Steps to reproduce

    WordPress >=5.3 defaults to showing the reminder every 6 months when logging in to the admin. There does not appear to be a way to programmatically trigger the reminder. You can adjust the interval at which it appears with the admin_email_check_interval filter. The best chance at getting it to appear is to log into a site that you haven't recently.

    bug 
    opened by matbrady 1
  • Login Letter/Logo Spacing on Session Expiration

    Login Letter/Logo Spacing on Session Expiration

    Problem

    Noticed something super minor today but the login/logo letter is a little cramped when the admin session expires. This isn't apparent with the default Wordpress styles because the top modal bar is the same color as the iframed login background. By changing the background color with this package the spacing, or lack of, becomes apparent.

    Examples

    spacing_issue

    wordpress_login

    Steps to reproduce

    1. Login to the admin
    2. Delete domain cookies
    3. Wait for session expiration login modal to appear

    Possible Solution

    padding?

    bug 
    opened by matbrady 1
  • "Back to Site" not showing

    Problem

    WP default login page has a link on the bottom that says: "← Back to Site Name" that is currently missing.

    Example

    This is the default login page: Screen Shot 2021-03-23 at 2 01 46 PM

    This is the login page while using this plugin: Screen Shot 2021-03-23 at 2 02 03 PM

    After inspecting the code I found a few things:

    .login #login #backtoblog { 
        display: none;
    }
    
    .login #login a {
        /* color: #0073aa; */
        color: var(--login-brand,#0073aa);
    }
    

    So, the link is there but there are two situations:

    1. It has display:none;
    2. It is using the same color as the background, thus making it "invisible".

    Possible solution

    1. Remove the display:none from the css.
    2. Change the color for the link

    Additional info

    This also happens with the privacy policy page link. Since it also uses the colors from .login #login a, this would also benefit from the fix described before.

    help wanted good first issue 
    opened by pablobh 0
  • WP 5.7 Reset Password Screen

    WP 5.7 Reset Password Screen

    Thought it was worth flagging but have not yet tested it. WordPress 5.7 includes updates to the password reset screen which includes a generate password button.

    5.6 / 5.7

    reset-password-screen

    source: https://kinsta.com/blog/wordpress-5-7/#reset-password-screen

    enhancement help wanted 
    opened by matbrady 0
  • When using a light color palette, input text is barely visible

    When using a light color palette, input text is barely visible

    Problem

    If you use a light color palette, the text on the inputs is barely visible.

    Example

    Here is my current color palette:

    add_filter('login_color_palette', function () {
        return [
            'brand' => '#f3f3f3',
            'trim' => '#9d402d',
            'trim-alt' => '#f3f3f3',
        ];
    });
    

    This is how it looks: Screenshot from 2020-07-21 19-23-45

    As you can see, the text from the inputs is really hard to read.

    Possible solution

    Have an additional variable we can setup named "text" or something like that and have the inputs text use them.

    Additional info

    I'm using the latest version of the plugin. I think this may be related to #1

    Bonus track

    I know this plugin is supposed to be as simple as possible, but would it be too much to ask to add another variable for the login button? As you can see from my screenshot, the login button doesn't looks like a button, maybe add a little bit of shadow?

    bug 
    opened by pablobh 0
  • Text color and removal of logo

    Text color and removal of logo

    Great little package, thanks for your work on it!

    I saw that you've previously had the option to set text color, would it be possible to bring it back? Would be cool to optionally disable the logo image altogether as well!

    The design I'm going for is something like this: Skärmavbild 2021-09-10 kl  11 59 09

    opened by intelligence 0
  • Registration

    Registration

    Hi,

    Thanks for this great little plugin which provides login customization in no time!

    There's a little issue with the registration form:

    Capture d’écran 2020-09-15 à 10 49 15

    Maybe it would be more secure to set a safer base text color?

    opened by nlemoine 9
Releases(v1.0.7)
Owner
Brandon
Internet Marketing & Web Development
Brandon
User registration and login form with validations and escapes for total security made with PHP.

Login and Sign Up with PHP User registration and login form with validations and escapes for total security made with PHP. Validations Required fields

Alexander Pérez 2 Jan 26, 2022
A complete Login and Register page using a Mysql Database and php

Login With Mysql A complete Login and Register page using a Mysql Database ?? Built with ⚙️ ?? Description A login with Frontend, Backend and Database

Marc Medrano 1 Nov 5, 2021
PHP Login and Registration Script

dj_login PHP Login and Registration Script To function this script requires you put your MySQL info into both login.php and register.php, and have the

djsland.com 1 Nov 16, 2021
A Laravel 5 package for OAuth Social Login/Register implementation using Laravel socialite and (optionally) AdminLTE Laravel package

laravel-social A Laravel 5 package for OAuth Social Login/Register implementation using Laravel socialite and (optionally) AdminLTE Laravel package. I

Sergi Tur Badenas 42 Nov 29, 2022
Braindead simple social login with Laravel and Eloquent.

Important: This package is not actively maintained. For bug fixes and new features, please fork. Eloquent OAuth Use the Laravel 4 wrapper for easy int

Adam Wathan 374 Dec 21, 2022
This extension expands WSOAuth extension and provide a EveOnline SSO login method

This extension expands WSOAuth extension and provide a EveOnline SSO login method

Raze Soldier 1 Nov 15, 2021
Login Social and product store

Run Stores Fake Marvel store This is a fake Marvel Store, here you can find a list of all the Marvel characters and simulate a shopping of its product

Ricardo Rito Anguiano 1 Jan 22, 2022
Helps you securely setup a master password and login into user accounts with it.

?? Make your Login form smart in a minute! Built with ❤️ for every smart laravel developer Helps you set a master password in .env file and login into

Iman 341 Jan 1, 2023
How to create a simple auth system with login and signup functionalities in Code-igniter 4.

Codeigniter 4 Authentication Login and Registration Example Checkout the step-by-step tutorial on: Codeigniter 4 Authentication Login and Registration

Digamber Rawat 7 Jan 9, 2023
Instantly login as user via a single button tap on dev environments.

Getting tired of always entering login details in local dev environments? This package adds a button to instantly login a user! Installation You can i

Quinten Buis 3 Feb 18, 2022
Un proyecto que crea una API de usuarios para registro, login y luego acceder a su información mediante autenticación con JSON Web Token

JSON WEB TOKEN CON LARAVEL 8 Prueba de autenticación de usuarios con una API creada en Laravel 8 Simple, fast routing engine. License The Laravel fram

Yesser Miranda 2 Oct 10, 2021
Register ,Login , Logout , having access control

Helo what's up dude read by the name of creator lov3yp :D This script is inspired by Lov3yp#2018 And Burak karahan Installation steps: !- Import the s

Lov3yp 2 Nov 1, 2021
Laravel package to easily login as other users during development.

A Laravel 5.4 utility package to enable developers to log in as other users during development. Installation To install the package, simply follow the

VIA Creative 555 Jan 8, 2023
Login Using Laravel UI

Projeto Laravel utilizando a biblioteca Laravel UI para autenticação de usuários com Username e Senha.

AlexLeonel 2 Oct 27, 2021
Login & Register using laravel 8

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Georgy Octavianus Fernando 1 Nov 16, 2021
A simple, safe magic login link generator for Laravel

Laravel Passwordless Login A simple, safe magic login link generator for Laravel This package provides a temporary signed route that logs in a user. W

gro.sv 689 Dec 25, 2022
Login Menggunakan Google, Github, & Facebook

Login Oauth 2 Karena agak rumit untuk menjelaskan, ikuti tutorial berikut untuk mengatur CLIENTID dan CLIENTSECRET mu terlebih dahulu klik. Server Req

Fadhlurrahman 1 Nov 24, 2021
A minimal package that helps you login with any password on local environments

Laravel Anypass Built with ❤️ for every "lazy" laravel developer ;) It is always painful to remember and type in the correct password in the login for

Iman 208 Jan 1, 2023
Secure WordPress login with two factor authentication

This plugin allows you to secure your WordPress login with two factor authentication. The users will have to enter a one time password every time they log in.

Volodymyr Kolesnykov 6 Nov 2, 2022