mokey icon indicating copy to clipboard operation
mokey copied to clipboard

configuration option to disable registration

Open tubby1981 opened this issue 1 year ago • 4 comments

We want to use Mokey as a self-service portal for our users so they can manage their own FreeIPA accounts. Accounts are created by an admin in FreeIPA.

Is it possible, via a configuration option, to enable or disable registration through the Mokey portal? We would like to have this disabled, but other users of the Mokey portal might prefer to have it enabled.

tubby1981 avatar Dec 17 '24 19:12 tubby1981

Looks like this was a regression since version 0.6 where the enable_user_signup option vanished with the swap to using mokey.toml.

Aterfax avatar Dec 17 '24 20:12 Aterfax

It seems so, because in the 0.5.2 version this configuratio option was still there. Can this configuration option be added again?

0.5.2 version enable_user_signup: true default_shell: "/bin/bash" default_homedir: "/home"

tubby1981 avatar Dec 18 '24 09:12 tubby1981

Solved by placing mokey templates in the /usr/share/mokey/templates directory and removing the registration link there. It would be nice if this could also can be done via a configuration option.

tubby1981 avatar Dec 19 '24 15:12 tubby1981