forked from rDrama/rDrama
master
parent
ef4fca3aa8
commit
fbfc0d36db
|
@ -659,7 +659,7 @@ def unshadowban(user_id, v):
|
||||||
@validate_formkey
|
@validate_formkey
|
||||||
def verify(user_id, v):
|
def verify(user_id, v):
|
||||||
user = g.db.query(User).filter_by(id=user_id).first()
|
user = g.db.query(User).filter_by(id=user_id).first()
|
||||||
user.verified = True
|
user.verified = "Verified"
|
||||||
g.db.add(user)
|
g.db.add(user)
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
||||||
|
@ -668,7 +668,7 @@ def verify(user_id, v):
|
||||||
@validate_formkey
|
@validate_formkey
|
||||||
def unverify(user_id, v):
|
def unverify(user_id, v):
|
||||||
user = g.db.query(User).filter_by(id=user_id).first()
|
user = g.db.query(User).filter_by(id=user_id).first()
|
||||||
user.verified = False
|
user.verified = None
|
||||||
g.db.add(user)
|
g.db.add(user)
|
||||||
return "", 204
|
return "", 204
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue