Coder Social home page Coder Social logo

wp-force-password-change's People

Contributors

johnbillion avatar lumpysimon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

wp-force-password-change's Issues

Force password change for all users

Add an admin page where administrators can force all users to change their password next time they log in. Could be useful for example if your site has been hacked and you want everyone to change their passwords.

Would probably need to be able to specify which roles it applies to.

Maybe also with the option to email users?

Change redirect page to front end

Hi Simon, I changed the redirect page to point to a front end Edit Account page on a WooCommerce site I'm devleloping. At log in or registration, now I end up with a redirect loop and can't quite figure out why. Have you tried this before? Any ideas?

Thanks,
-Jibran

screen shot 2014-10-15 at 11 41 19 am

Too many redirects

Hi, i installed your plugin and it caused error too many redirects?

thanks

Redirect to other page than profile.php

Hi Simon, thanks for your plugin ! But I try to change the redirect url to a custom page with a form added by the shortcode from pippinplugins. So I try as jibranb said, with changing the url but it doesn't work and I'm always redirected to the wp-admin/profile page.
This is the code :
`function redirect() {

	global $current_user;

	if ( is_admin() ) {
		$screen = get_current_screen();
		if ( 'profile' == $screen->base )
			return;
		if ( 'plugins' == $screen->base )
			return;
	} else {
    global $wp;
    $current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
    if ( strpos( $current_url, 'connexion-collaborateur' ) ) {
        return;
    }
}

	if ( !is_user_logged_in() )
		return;

	wp_get_current_user();
if ( get_user_meta( $current_user->ID, 'force-password-change', true ) ) {
    wp_redirect( get_site_url() . '/changement-mdp' );
    exit; // never forget this after wp_redirect!
}

}`

Would you say me what is wrong ?
After that, I'll have an other question ;-)

Thanks a lot !!

Repo with old versions

Hi @lumpysimon,

ΒΏIs there any repo where i can download old versions of this plugin?

I've got a script that checks and downloads a concrete version (used to be 0.5) using @wp-cli but it doesn't work anymore because there are no previous versions available neither here nor at wordpress.com 😞

Regards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.