Skip to content

Commit

Permalink
feat: jans-linux-setup add forgot password script (#1587)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Jun 22, 2022
1 parent 39b9b42 commit b2e3eb3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jans-linux-setup/jans_setup/setup_app/utils/crypto64.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def prepare_base64_extension_scripts(self, extensions=[]):
extension_path = Path(Config.extensionFolder)
for ep in extension_path.glob("**/*"):
if ep.is_file() and ep.suffix.lower() in ['.py', '.java']:
extension_type = ep.parent.name.lower()
extension_type = ep.relative_to(Config.extensionFolder).parent.as_posix().lower().replace(os.path.sep, '_')
extension_name = ep.stem.lower()
extension_script_name = '{}_{}'.format(extension_type, extension_name)

Expand Down
15 changes: 15 additions & 0 deletions jans-linux-setup/jans_setup/templates/scripts.ldif
Original file line number Diff line number Diff line change
Expand Up @@ -546,3 +546,18 @@ jansProgLng: python
jansRevision: 1
jansScr::%(person_authentication_agamabridge)s
jansScrTyp: person_authentication

dn: inum=B270-381E,ou=scripts,o=jans
objectClass: jansCustomScr
objectClass: top
description: This script is a 2 in 1. It can be used to enable user to reset its password or to enable 2FA sending a token to user's email
displayName: Forgot Password 2FA Token
inum: B270-381E
jansConfProperty: {"value1":"SCRIPT_FUNCTION","value2":"forgot_password","description":""}
jansEnabled: false
jansLevel: 10
jansModuleProperty: {"value1":"SCRIPT_FUNCTION","value2":"ldap","description":""}
jansProgLng: python
jansRevision: 1
jansScr::%(person_authentication_other_forgot_password_forgot_password)s
jansScrTyp: person_authentication

0 comments on commit b2e3eb3

Please sign in to comment.