Make WordPress Core


Ignore:
Timestamp:
02/22/2016 11:14:27 PM (8 years ago)
Author:
ocean90
Message:

Authentication: Allow users to log in using their email address.

Introduces wp_authenticate_email_password() which is hooked into authenticate after wp_authenticate_username_password().

Props Denis-de-Bernardy, ericlewis, vhomenko, MikeHansenMe, swissspidy, ocean90.
Fixes #9568.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r36341 r36617  
    343343// Default authentication filters
    344344add_filter( 'authenticate', 'wp_authenticate_username_password',  20, 3 );
     345add_filter( 'authenticate', 'wp_authenticate_email_password',     20, 3 );
    345346add_filter( 'authenticate', 'wp_authenticate_spam_check',         99    );
    346347add_filter( 'determine_current_user', 'wp_validate_auth_cookie'          );
Note: See TracChangeset for help on using the changeset viewer.