Skip to content

Commit 556b9a2

Browse files
committed
trying new function
1 parent 23bfb80 commit 556b9a2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

selfservice/utilities/reset.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from selfservice.models import ResetToken, PhoneVerification
1212
from selfservice.utilities.general import is_expired
13-
from selfservice import db, app
13+
from selfservice import db, app, ipa
1414

1515

1616
class TokenAlreadyExists(Exception):
@@ -136,6 +136,9 @@ def passwd_change(username, old_pw, new_pw):
136136
new_pw -- Desired new password.
137137
"""
138138
# Find FreeIPA server
139+
result = ipa.change_password(username, old_pw, new_pw)
140+
print(result)
141+
return
139142
ldap_srvs = srvlookup.lookup("ldap", "tcp", "csh.rit.edu")
140143
ldap_uri = ldap_srvs[0].hostname
141144
change = requests.post(

0 commit comments

Comments
 (0)