mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
bepasty: Require at least one permission on a password
- Since a password without any permissions is not useful. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
1 parent
8194628eb3
commit
028137a4e4
3 files changed
+7
-10
No files matched your search
+2
-2
@@ -44,7 +44,7 @@ def parse_arguments():
|
||||
|
||||
setup = subparsers.add_parser(
|
||||
'setup', help='Perform post-installation operations for bepasty')
|
||||
setup.add_argument('--domain-name',
|
||||
setup.add_argument('--domain-name', required=True,
|
||||
help='The domain name that will be used by bepasty')
|
||||
|
||||
subparsers.add_parser(
|
||||
@@ -54,7 +54,7 @@ def parse_arguments():
|
||||
add_password = subparsers.add_parser(
|
||||
'add-password', help='Generate a password with given permissions')
|
||||
add_password.add_argument(
|
||||
'--permissions', nargs='*',
|
||||
'--permissions', nargs='+',
|
||||
help='Any number of permissions from the set: {}'.format(', '.join(
|
||||
bepasty.PERMISSIONS.keys())))
|
||||
add_password.add_argument(
|
||||
|
||||
Reference in new issue
Block a user