Fix bug setting wiki password

This commit is contained in:
Tanner Collin 2021-09-04 23:47:45 +00:00
parent 58b3e4bcc5
commit fa8d68ad52

View File

@ -563,7 +563,7 @@ class MyPasswordChangeSerializer(PasswordChangeSerializer):
password=self.data['new_password1'], password=self.data['new_password1'],
) )
if utils_auth.is_configured(): if utils_auth.wiki_is_configured():
if utils_auth.set_wiki_password(data) != 200: if utils_auth.set_wiki_password(data) != 200:
msg = 'Problem connecting to Auth server: set.' msg = 'Problem connecting to Auth server: set.'
utils.alert_tanner(msg) utils.alert_tanner(msg)
@ -604,7 +604,7 @@ class MyPasswordResetConfirmSerializer(PasswordResetConfirmSerializer):
password=self.data['new_password1'], password=self.data['new_password1'],
) )
if utils_auth.is_configured(): if utils_auth.wiki_is_configured():
if utils_auth.set_wiki_password(data) != 200: if utils_auth.set_wiki_password(data) != 200:
msg = 'Problem connecting to Auth server: set.' msg = 'Problem connecting to Auth server: set.'
utils.alert_tanner(msg) utils.alert_tanner(msg)