Commit a3eca121 authored by Dominika Liberda's avatar Dominika Liberda 💽

+ USUŃ KONTO

parent 1d3e54e0
......@@ -78,3 +78,10 @@ function session_get_username() {
unset IFS
echo ${data[0]}
}
# THIS FUNCTION IS DANGEROUS
# delete_account(username)
function delete_account() {
[[ "$1" == "" ]] && return
sed -i "s/^$1:.*//;/^$/d" secret/users.dat
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment