Show irc password on admin control panel
This commit is contained in:
parent
d0709ec735
commit
ae34e8d144
|
@ -632,6 +632,12 @@ function change_password {
|
||||||
--msgbox $"Password for $SELECTED_USERNAME was changed" 6 40
|
--msgbox $"Password for $SELECTED_USERNAME was changed" 6 40
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function irc_show_password {
|
||||||
|
IRC_PASSWORD=$(cat /etc/ngircd/ngircd.conf | grep "Password =" | head -n 1 | awk -F '=' '{print $2}')
|
||||||
|
dialog --title $"IRC Password" \
|
||||||
|
--msgbox "$IRC_PASSWORD" 4 40
|
||||||
|
}
|
||||||
|
|
||||||
function irc_set_global_password {
|
function irc_set_global_password {
|
||||||
dialog --title $"IRC Password" \
|
dialog --title $"IRC Password" \
|
||||||
--clear \
|
--clear \
|
||||||
|
@ -1834,8 +1840,9 @@ function menu_irc {
|
||||||
--title $"IRC Menu" \
|
--title $"IRC Menu" \
|
||||||
--radiolist $"Choose an operation:" 14 70 4 \
|
--radiolist $"Choose an operation:" 14 70 4 \
|
||||||
1 $"Set a password for all IRC users" off \
|
1 $"Set a password for all IRC users" off \
|
||||||
2 $"Access via the onion address" off \
|
2 $"Show current IRC login password" off \
|
||||||
3 $"Exit" on 2> $data
|
3 $"Access via the onion address" off \
|
||||||
|
4 $"Exit" on 2> $data
|
||||||
sel=$?
|
sel=$?
|
||||||
case $sel in
|
case $sel in
|
||||||
1) break;;
|
1) break;;
|
||||||
|
@ -1843,8 +1850,9 @@ function menu_irc {
|
||||||
esac
|
esac
|
||||||
case $(cat $data) in
|
case $(cat $data) in
|
||||||
1) irc_set_global_password;;
|
1) irc_set_global_password;;
|
||||||
2) irc_via_onion;;
|
2) irc_show_password;;
|
||||||
3) break;;
|
3) irc_via_onion;;
|
||||||
|
4) break;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue