gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-bank] branch master updated: do not ask for password


From: gnunet
Subject: [taler-bank] branch master updated: do not ask for password
Date: Wed, 18 Dec 2019 20:11:26 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new bc8545f  do not ask for password
bc8545f is described below

commit bc8545f567b76e1908f0d1d4f366c61978885c44
Author: Florian Dold <address@hidden>
AuthorDate: Wed Dec 18 20:11:23 2019 +0100

    do not ask for password
---
 talerbank/app/management/commands/add_bank_account.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/talerbank/app/management/commands/add_bank_account.py 
b/talerbank/app/management/commands/add_bank_account.py
index 30789df..c772f01 100644
--- a/talerbank/app/management/commands/add_bank_account.py
+++ b/talerbank/app/management/commands/add_bank_account.py
@@ -50,15 +50,10 @@ class Command(BaseCommand):
     # for each one of them.
     def handle(self, *args, **options):
         accountname = options["accountname"]
-        pw = getpass.getpass("Enter new password")
-        pw2 = getpass.getpass("Enter repeat new password")
-        if pw != pw2:
-            print("Error: Passwords do not match")
-            return
         BankAccount(
             user=User.objects.create_user(
                 username=accountname, password=str(uuid.uuid4())
             ),
             is_public=False,
         ).save()
-        print("Created new bank account.")
+        print("Created new bank account (password set to random password)")

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]