Skip to content

Commit

Permalink
feat: add verifyCaptcha
Browse files Browse the repository at this point in the history
  • Loading branch information
poeti8 committed Apr 23, 2021
1 parent 01ff76e commit d48772e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stores/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ const unwarn = ({ id }, warnQuery) =>

const nowarns = query => unwarn(query, {});

const verifyCaptcha = ({ id }, captcha = true) =>
User.update({ id }, { $set: { captcha } });

module.exports = {
admin,
ban,
Expand All @@ -182,5 +185,6 @@ module.exports = {
unban,
unwarn,
updateUser,
verifyCaptcha,
warn,
};

0 comments on commit d48772e

Please sign in to comment.