It need not be very complicated. You can simply create a pattern like 2018-09-07-ABC
(suffix of ABC
) for the date 2018-09-07
.
Set up the password creation/validation logic like password = md5('2018-09-07-ABC')
.
An administrator if they know the pattern, they can anytime goto any online md5
utility such as http://www.md5.cz and enter the pattern for current date.
Say for example today is December 25, 2018. Then they will enter 2018-12-25-ABC
and the hash will be b21746c6db1c5323f28dd874fe60165f
TIP: You do not need to use entire 32 character password. Using first 8 characters (or any desired length) would be easier.
Sample PHP Code the generate password of length 8:
$md5hash = md5(date('Ymd') . '-ABC');
$password = substr($md5hash, 0, 8);
Note: Take care of the timezone being used at the server when generating the password.
Related Posts:
- Sending the reset password link programatically
- Enforcing password complexity
- Add extra field to users
- Display user’s total comment count outside The Loop
- Changing user_nicename
- What is the most efficient way to search users by their display name?
- Can i check if user is doing any ajax request?
- How do I create a WP user outside of WordPress and auto login?
- Network installation giving errors when viewing or adding a user
- Showing user ID on user main page from screen options
- Getting the Current User
- How do I hide specific user profile fields?
- Authenticating to WordPress, using my own authentication two-factor system
- automated tests as a user?
- Go to / Scroll to Password Field on WordPress Posts After Submit With Message(s)
- How can I default to all WordPress roles when parameter is not included in shortcode?
- there’s a way to include a minimal WP for check only the current user, its roles (caps?) and then release/free it?
- Delete option value from array using update_option()
- get_users(…) only returns one user
- List User order by ID in Descending order (Backend)
- Warning: Use of undefined constant HTTP_USER_AGENT – assumed ‘HTTP_USER_AGENT’ (this will throw an Error in a future version of PHP)
- Get all user meta by meta key instead of ID
- How to get a list of all possible values of a specific user meta key?
- User’s total comment count excluding comments on their own posts
- Show all posts by author
- Custom user login page by creating a plugin
- How to limit the number of forgot password reset attempts in WordPress?
- Programmatic Login from 3rd Party site
- user_profile_update_errors hook not executing
- Get users that likes the post
- custom user role wordpress – grant guest access to edit.php without insert/update/delete
- add_cap not working
- Styling my own password protected page, how to deal with wrong password?
- wordpress archive a user
- Call to undefined function get_userdata() in plugin
- How to know where this function definition is declared?
- get_users meta_query: REGEXP not working for matching new lines
- Change CSS based on is_user_logged_in
- Password minimum length in personal subscription [closed]
- How do you create two separate Register pages?
- Is it possible to create new user from external form using REST API?
- Foreach loop inside an array_merge
- Redirecting to a custom forgot password page
- How do I create a function that modifies a message in the wp-login.php file?
- show something only when user comes from specific page at remote host?
- Get the users that my following users are following
- create front-end users post list by specific category
- ‘pre_user_query’ interfering with user export
- How can I call a specific file (via php) by referencing the logged-in username?
- Remove password protection from all posts
- Uses for function: wp_update_user
- Display additional user fields
- Password protect URLs
- Sort new column in Users wp-admin
- Allow a user or role to view drafts and previews, but not other admin privileges?
- Woocommerce display orders with products from specific categories to specific admins
- Storing huge number of users in wordpress
- Get current user id in function php
- How to count active users on a specific page
- Hide Approved status for certain users in users list
- Call WP Rest-Api to GET /users/me returned NOTHING in console
- Uploading/integrating custom user registration page
- If user has clicked link add class and store using PHP/WordPress
- Export WordPress User Meta to CSV/Excel
- Page template not working when logged out
- Allow specific user to edit a specific page
- Display current user metadata on WordPress page
- Help hooking into user_register
- Redirecting the lost password page request when using a custon login page
- Hook into all password resets in WordPress and get password before hashing?
- Use WP user status (logged_in) to manage access to independent application
- Add another role to a user when they click a button?
- Query to show average # of months all accounts with specific role have been active
- is_user_logged_in() not working in homepage
- (Who to follow) Twitter widget
- Can’t get_users info by using json_encode
- Editable Student file associated with basic User ID
- Matching multi user
- Private messaging – Getting and displaying the avatar/url of a message recipient
- Updating custom user meta
- Update only some custom user fields
- List users in a dropdown for login
- How to set max users to 17.000
- Trying to display user meta by “name” – not by “ID”
- main menu page redirects to user ID
- How to ‘remember’ a site member’s last visited page?
- How to connect database table to each registered wordpress user.
- Adapting a php array to WordPress
- Get author meta of all writers
- Password form redirection to belonging post
- Display a list of users with avatar filterable with alphabets
- Cross origin ajax request always returns 0 when calling get_current_user_id();
- Forbid certain users to access a specific page
- Check if username doesn’t exists
- One folder to be accessible by one user
- WP query with variables gives no result for specific user
- rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API
- How to create custom user role without plugin?
- PHP Works only for logged in users: [closed]
- Custom Admin Menu Report for Specific User ID