export into config
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
#!/bin/bash
|
||||
export LANG=C
|
||||
export EVENT=DiVOC
|
||||
export TERM=vt220
|
||||
|
||||
export DIALOGRC=dialogrc
|
||||
|
||||
source ./config
|
||||
|
||||
export PRINTDEVICE="/dev/ttyUSB$CLIENTS"
|
||||
|
||||
LOCKFILE=/tmp/c3govlock
|
||||
TMP=/tmp/$RANDOM
|
||||
BT="c3gov - v0.5"
|
||||
@@ -388,7 +391,7 @@ function askForFunnyUserCreds() {
|
||||
askPw 12 "Login" "Password:" ""
|
||||
password=$(cat $TMP)
|
||||
|
||||
if [ -f .pw/$username ]; then
|
||||
if [ -f ".pw/$username" ]; then
|
||||
if [ "$password" != $(cat .pw/$username) ]; then
|
||||
clear
|
||||
echo "Wrong credentials."
|
||||
|
||||
Reference in New Issue
Block a user