update send email kalau get

1 parent 6fd58d28
...@@ -367,7 +367,8 @@ class Views(BaseView): ...@@ -367,7 +367,8 @@ class Views(BaseView):
def send_profile_password(self): def send_profile_password(self):
user = self.req.user user = self.req.user
if user and user.external_identities.count() > 0:
if not self.req.POST and user and user.external_identities.count() > 0:
remain = regenerate_security_code(user) remain = regenerate_security_code(user)
send_email_security_code( send_email_security_code(
self.req, user, remain, 'Request profile change', 'email-profile-password', self.req, user, remain, 'Request profile change', 'email-profile-password',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!