mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
fix: password generation command line crash
This commit is contained in:
parent
eb7338c76c
commit
d2f4efed9a
2 changed files with 4 additions and 3 deletions
|
@ -5,8 +5,8 @@ This document describes changes between each past release.
|
|||
## 6.1.2 (unreleased)
|
||||
|
||||
|
||||
- Nothing changed yet.
|
||||
|
||||
### Fixed
|
||||
- Fix a password generation command line crash introduced by #1214 (#1242)
|
||||
|
||||
## 6.1.1 (2023-10-04)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import random
|
|||
import sys
|
||||
|
||||
import click
|
||||
from flask.cli import FlaskGroup
|
||||
from flask.cli import FlaskGroup, with_appcontext
|
||||
|
||||
from ihatemoney.models import Project, db
|
||||
from ihatemoney.run import create_app
|
||||
|
@ -33,6 +33,7 @@ def runserver(ctx):
|
|||
|
||||
|
||||
@cli.command(name="generate_password_hash")
|
||||
@with_appcontext
|
||||
def password_hash():
|
||||
"""Get password from user and hash it without printing it in clear text."""
|
||||
password = getpass.getpass(prompt="Password: ")
|
||||
|
|
Loading…
Reference in a new issue