You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DEFINE EVENT reset_password ON reset_password WHEN ($event =="CREATE") THEN {
LET $user = fn::user_from_email($value.email);
fn::validate_otp($value.otp, $user);
UPDATE $user.idSET password = crypto::argon2::generate($value.password);
UPDATE $value SET password = None, updated_at =time::now(); # is this how one should get rid of password being logged in event record?
};
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Beta Was this translation helpful? Give feedback.
All reactions