helsingborg-stad / modularity-login-form
Frontend login form based on react.
Installs: 293
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 11
Forks: 0
Open Issues: 5
Type:wordpress-plugin
- dev-master
- 1.1.0
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- dev-snyk-upgrade-ab015d25354735c2859bfe4b4b2f42f0
- dev-snyk-upgrade-03cb833ff32fdbd4eab9d41c96667102
- dev-snyk-upgrade-e54100986366cfb9089e03d35d80b6c5
- dev-snyk-upgrade-70628bca65ebf4f051b5961720d42e65
- dev-snyk-upgrade-534fb936225dcbef451b0ae4fd639470
This package is auto-updated.
Last update: 2024-11-08 06:20:28 UTC
README
Login module for modularity
Getting Started
Get the latest version and follow the installation steps bellow.
Dependencies
Wordpress, Municipio and Modularity (version 2.11.0 or higher)
Installing
Get a development enviroment running by doing following:
Activate
Activate plugin.
Activate the module in modularity
Add module to page or post
Settings
Module settings
Set the redirection page
Filters
add_filter('modularityLoginForm/AbortLogin', function($message, WP_User $user) {
//Check that anoter message isen't set before
if($message === false) {
if($user->ID = 1) {
$message = __("You sir may not login.", 'plugin-text-domain');
}
if($user->ID = 2) {
$message = __("Your account has been suspended.", 'plugin-text-domain');
}
}
return $message;
}, 10, 2);
Built With
- PHP
- React
Releases
https://github.com/helsingborg-stad/modularity-login-form/releases
Authors
- Johan Silvergrund, Sebastian Thulin
License
This project is licensed under the MIT License - see the LICENSE file for details