Reset password & TOTP when downloading DB

This commit is contained in:
Gabriel Augendre 2021-12-27 22:10:47 +01:00
parent 5be1a0c67d
commit 74930d1e9f

View file

@ -44,6 +44,8 @@ def download_db(ctx):
with ctx.cd(BASE_DIR): with ctx.cd(BASE_DIR):
ctx.run( ctx.run(
"scp ubuntu:/home/gaugendre/blog/db/db.sqlite3 ./db/db.sqlite3", "scp ubuntu:/home/gaugendre/blog/db/db.sqlite3 ./db/db.sqlite3",
echo=True,
pty=True, pty=True,
) )
with ctx.cd(SRC_DIR):
ctx.run("./manage.py two_factor_disable gaugendre", pty=True)
ctx.run("./manage.py changepassword gaugendre", pty=True)