mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 06:48:00 +01:00
prevent passord special chars #162
This commit is contained in:
parent
05ebf3c772
commit
6ddfeaf690
1 changed files with 10 additions and 1 deletions
|
@ -31,7 +31,8 @@ B) Blockchain RPC Password
|
|||
C) LND Wallet Password
|
||||
D) LND Seed Password
|
||||
|
||||
Choose now 4 new passwords - all min 8 chars
|
||||
Choose now 4 new passwords - all min 8 chars,
|
||||
no spaces and only special characters - or .
|
||||
Write them down & store them in a safe place.
|
||||
" 14 52
|
||||
|
||||
|
@ -43,6 +44,14 @@ dialog --backtitle "RaspiBlitz - Setup"\
|
|||
result=$( cat $_temp )
|
||||
shred $_temp
|
||||
|
||||
clearedResult=$(echo '${result}' | tr -dc '[:alnum:]-.')
|
||||
if [ ${#clearedResult} != ${#result} ]; then
|
||||
clear
|
||||
echo "FAIL - Password contained not allowed chars"
|
||||
echo "Please restart with ./00mainMenu.sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check input (check for more later)
|
||||
if [ ${#result} -eq 0 ]; then
|
||||
clear
|
||||
|
|
Loading…
Add table
Reference in a new issue