mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Try to fix Admin Panel / Disable Registration and Disable Forgot Password.
Thanks to urmel1960, Ben0it-T and xet7 ! Fixes #4384
This commit is contained in:
parent
454d0b270d
commit
0775e2a3e5
3 changed files with 29 additions and 17 deletions
|
|
@ -56,15 +56,16 @@ Template.userFormsLayout.onCreated(function() {
|
|||
|
||||
Meteor.call('isDisableRegistration', (_, result) => {
|
||||
if (result) {
|
||||
$('.at-signUp').hide();
|
||||
$('.at-signup-link').hide();
|
||||
}
|
||||
});
|
||||
|
||||
Meteor.call('isDisableForgotPassword', (_, data) => {
|
||||
Meteor.call('isDisableForgotPassword', (_, result) => {
|
||||
if (result) {
|
||||
$('.at-forgotPwd').hide();
|
||||
$('.at-pwd-link').hide();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Template.userFormsLayout.onRendered(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue