#eohfpra
#tkmaahq
(#e2hjhua) this is lovely Iām not gonna lie
#c5s22qq
(#e2hjhua)
doas -u _postgresql psql --dbname=maddy --host=localhost --username=maddy -c "UPDATE passwords SET value = '$(maddy hash --password "$1")' WHERE key = '$2'"
take 2, without the 3rd argument
#2gfmeja
I wrote this little thing
doas -u _postgresql psql --dbname=maddy --host=localhost --username=maddy "UPDATE passwords SET value = '$(maddy hash --password "$1")' WHERE key = '$2' AND value = '$(maddy hash --password "$3")'"
First argument is the new password (hashed of course), the second being the username, the third being the old (current) password. I havenāt yet tried this but I might now.
#e2hjhua
(#av2eurq) @prologic@twtxt.net holy crap
#5c637yq
(#6wzkhqa) @lyse@lyse.isobeef.org lol yeah I just realized.
#kjocfba
(#6wzkhqa) This is an updated revision (which throws the same error though):
#!/usr/local/bin/haserl --accept-all
Content-Type: text/html
<html>
<head>
<link rel="stylesheet" href="https://cdn.kyoko-project.wer.ee/@mirage/mirageCSS/dark.css">
<title>KyokoMail: Change account password</title>
</head>
<body>
<h1>Change account password for KyokoMail</h1>
<p>Warning: to use this form you <b>must</b> have an account on this service, otherwise, get out.</p>
<form action="<% /usr/local/maddy/maddy creds password --password %>" method="GET">
<p>
Username:
<input type="text" name="username" cols="20" placeholder="username@kyoko-project.wer.ee" required="required"/>
</p>
<p>
New password:
<input type="password" name="new_password" cols="20" required="required"/>
</p>
<input type="submit" value="Go" />
</form>
</body>
</html>
Looks like I canāt make use of haserl for these kind of things
#iakzzda
(#6wzkhqa) this totally looks fine to me, but it seems to be taken in the wrong order and with duplicate parameters besides the two I want it to actually read, and it errors out.
#gobyfsa
(#6wzkhqa)
#!/usr/local/bin/haserl --accept-all
Content-Type: text/html
<html>
<head>
<link rel="stylesheet" href="https://cdn.kyoko-project.wer.ee/@mirage/mirageCSS/dark.css">
<title>KyokoMail: Change account password</title>
</head>
<body>
<h1>Change account password for KyokoMail</h1>
<p>Warning: to use this form you <b>must</b> have an account on this service, otherwise, get out.</p>
<form action="<% /usr/local/bin/maddy creds password --password $FORM_new_password_again $FORM_username %>" method="GET">
<p>
Username:
<input type="text" name="username" cols="20" placeholder="username@kyoko-project.wer.ee" required="required"/>
</p>
<p>
Current password:
<input type="password" name="old_password" cols="20" required="required"/>
</p>
<p>
New password:
<input type="password" name="new_password" cols="20" required="required"/>
</p>
<p>
New password (repeat):
<input type="password" name="new_password_again" cols="20" required="required"/>
</p>
<input type="submit" value="Go" />
</form>
</body>
</html>
#kd5rwaq
Oh geez this is driving me mad, I canāt get maddy to do that one thing I want it to do on a CGI script I wrote.
#6wzkhqa
(#xurjy2q) @prologic@twtxt.net Web3! >;P
#dgwnpqq
Heute war ein schƶner Tag. Wir waren am Strand und haben einiges erlebt.
#o3klu7a
(#66wqhra) @xuu@txt.sour.is got any clues? Iām kinda lost here
#veeppiq
Trying to figure out what sql query maddy does to change user passwords, but first, iām looking for the subcommand that actually does that⦠on the source code
#66wqhra
(#n43hgfa) @prologic@twtxt.net me neither. I guess itās just OS troubles as usual
#rkb45wq
(#n43hgfa) @prologic@twtxt.net iām using defaults for everything (havenāt bothered with custom templates on this one), although the error actually comes from typing anything thatās not a twt hash soā¦.
#leqsiba
#gkgceia
(#n43hgfa) @prologic@twtxt.net nope, iām using default āSimpleCSS Darkā right now
#mwynt7q
(#64r6qra) Granted iām personally a pacifist
#c66qqta
(#n43hgfa) @prologic@twtxt.net well, I think I carried this thing over since 0.14.x and 0.15.x just still happens to have it
#netmyma
(#64r6qra) @prologic@twtxt.net US never does anything good, and Biden had already shown his own desires of war (instead of what people would actually expect, and itās not surprising at all)
#wtedlkq
(#n43hgfa) plus I just updated to 0.15.1
#csauasq
(#n43hgfa) @prologic@twtxt.net https://social.kyoko-project.wer.ee/search?tag=lol
(anything will do)
#bzhbj7q
error executing template search: template: search:187:12: executing "twt" at <urlForRootConv $.Twt $.User>: error calling urlForRootConv: runtime error: invalid memory address or nil pointer dereference
search tags input bar throws this
#n43hgfa
(#xitcy5q) @movq@www.uninformativ.de plus the earthquakes are god awful on those buildings
#3ib6utq
(#z6htzwa) @carsten@yarn.zn80.net iirc your pod host doesnāt allow docker right? or is it somewhere else? ;P
#nowg6eq
Iāve got gopherproxy and kineto set up couple hours ago, both using the main siteās CSS, looks kind of weird but it works :tm:
#w5z6exa
Guess Iāll update my pod later today
#jehztaq
(#dd3wnxq) @prologic@twtxt.net i donāt personally think itād be any useful (plus why not just use UTC for everything otherwise)
#zoxohxq
āCorona wie die #Grippe behandelnā heiĆt übrigens nicht, mit #Corona zur Arbeit zu gehen, sondern mit Grippe zu Hause zu bleiben.
#uljm3oa
Das hier ist der neue deutschsprachige Feed. Hier wird es BeitrƤge in Deutscher Sprache geben und auf dem @carsten@yarn.zn80.net Feed in Englisch.
#d7givxq
(#c7heyxq) @eaplmx@twtxt.net presumably it means the control or leadership is located outside of it somewhere š
#576klyq
(#aysyaiq) @abucci@anthony.buc.ci ditto (plus hardly anybody knows about kyokonet)
#h6wwhna
(#3j2dr4q) Depressing
#q334jpq
Is some drama happening with Gitea? Do I need to pay attention? š§
#3j2dr4q
(#rdmu5xq) @carsten@yarn.zn80.net ~darch went to @darch@neotxt.dk
#kggrriq
(#bpukq7q) @abucci@anthony.buc.ci same
#6qe52rq
(#tnqkkjq) @aryak@yn.vern.cc lmfao thereās your problem. prologicās stuff uses https://github.com/tdewolff/minify (which BTW is actually better than the node.js variant)
#k6eyhla
(#nmp7vkq) Iām not sure why people are upset by autopilot deaths when cars in USA alone kill something like 3000 people per month š¤
#k2ubgva
(#lqb4vvq) @prologic@twtxt.net plus itās also getting confusing so might as well just do it @abucci@anthony.buc.ci
#5fbklca
(#qnrgs4a) @abucci@anthony.buc.ci Iām not surprised at all to be fair
#vlkwquq
#5xeasvq
#5editza
I wonder how go-gopher actually renders gophermaps into html
#woh24pa
(#vbzz6ta) If Elon stops twitter from lecturing you like a kindergarden teacher whenever you use mildly offensive language it will be the best improvement to the site in 10 years
#bnwe4ia
(#wwxq6mq) š that guyās post is actually pretty interesting to me. SSL is fugazi? Can it be? š§
#jjza26a
(#eu5qmna) @movq@www.uninformativ.de pretty much yeah, there are other browsers too but theyāre actually either toys or just trash
#nn5ndha
(#hu5gnka) fixed those āfeaturesā and pushed them to https://git.kyoko-project.wer.ee/Mirage/midori. Problem is, I canāt compile it, lol
#2fi7wuq
(#scbt4ja) @prologic@twtxt.net then you havenāt seen GNU info files, those are the worst, lmao
#pbshxea