summaryrefslogtreecommitdiffstats
path: root/skripti
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-09-28 21:24:50 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2023-09-28 21:24:50 +0200
commit51fcf14409e07b52d46802d89844de12484e8e61 (patch)
tree5a068b3a991f79ebc56cb6d38b68c739255c475c /skripti
parentponastavi geslo ul (diff)
downloadr-51fcf14409e07b52d46802d89844de12484e8e61.tar
r-51fcf14409e07b52d46802d89844de12484e8e61.tar.gz
r-51fcf14409e07b52d46802d89844de12484e8e61.tar.bz2
r-51fcf14409e07b52d46802d89844de12484e8e61.tar.lz
r-51fcf14409e07b52d46802d89844de12484e8e61.tar.xz
r-51fcf14409e07b52d46802d89844de12484e8e61.tar.zst
r-51fcf14409e07b52d46802d89844de12484e8e61.zip
Diffstat (limited to 'skripti')
-rwxr-xr-xskripti/ponastavi_geslo_ul.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/skripti/ponastavi_geslo_ul.sh b/skripti/ponastavi_geslo_ul.sh
index 4110611..fcc64c0 100755
--- a/skripti/ponastavi_geslo_ul.sh
+++ b/skripti/ponastavi_geslo_ul.sh
@@ -6,10 +6,10 @@ read -p "priimek: " priimek
read -p "datum rojstva (05. 07. 2023): " d
read -p "vpisna številka (12345678): " v
read -p "kratica članice (Agrft/Aluo/Bf/Ef/Fa/... prva črka velika): " k
+read -p "novo geslo: " n
p=`rev <<<$0 | cut -d/ -f1 | rev`
umask 0077
t=`mktemp -p "" $p.XXX`
trap "rm $t" EXIT
r=`curl --cookie $t --cookie-jar $t https://id.uni-lj.si/DigitalnaIdentiteta/PonastavitevGesla | grep RequestVerificationToken | tail -n1 | cut -d\" -f6`
-pipefail=$(curl --cookie $t --cookie-jar $t 'https://id.uni-lj.si/DigitalnaIdentiteta/PonastavitevGesla' -X POST --data-raw "Form.Ime=$i&Form.Priimek=$priimek&Form.DatumRojstva=$d&Form.VpisnaStevilka=$v&Form.OrganizacijaId=$k&Form.Username=$u&__RequestVerificationToken=$r" | grep "novo geslo je")
-sed -e 's/.*monospace.>\(.*\)<.strong.*/\1/' <<<"$pipefail"
+curl --cookie $t --cookie-jar $t 'https://id.uni-lj.si/DigitalnaIdentiteta/PonastavitevGesla' -X POST --data-raw "Form.Ime=$i&Form.Priimek=$priimek&Form.DatumRojstva=$d&Form.VpisnaStevilka=$v&Form.OrganizacijaId=$k&Form.Username=$u&Form.NewPassword=$n&Form.NewPasswordConfirmation=$n&__RequestVerificationToken=$r" | grep "ste ponastavili svoje geslo"