improve placeholder on login template
This commit is contained in:
@ -61,7 +61,7 @@ passbook:
|
||||
# Specify which fields can be used to authenticate. Can be any combination of `username` and `email`
|
||||
uid_fields:
|
||||
- username
|
||||
- email
|
||||
- e-mail
|
||||
# Factors to load
|
||||
factors:
|
||||
- passbook.core.auth.factors.backend
|
||||
|
7
passbook/lib/utils/ui.py
Normal file
7
passbook/lib/utils/ui.py
Normal file
@ -0,0 +1,7 @@
|
||||
"""passbook UI utils"""
|
||||
|
||||
def human_list(_list) -> str:
|
||||
"""Convert a list of items into 'a, b or c'"""
|
||||
last_item = _list.pop()
|
||||
result = ', '.join(_list)
|
||||
return '%s or %s' % (result, last_item)
|
Reference in New Issue
Block a user