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
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.

#!/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
#!/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>
(anything will do)
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

https://search.kyoko-project.wer.ee

glares at crabs and monads

I got a fancy status page now

* BNC: up
* Calls: up
* E-mail: up
* Feeds: up
* Git: up
* IRC: down
* Morty: up
* Mumble: up
* Salty.im: up
* Search: down
* Tildes: 1 out of 3 up
* XMPP: up
* Yarn.social: up*
* BNC: up
* Calls: up
* E-mail: up
* Feeds: up
* Git: up
* IRC: down
* Morty: down
* Mumble: up
* Salty.im: up
* Search: down
* Tildes: 1 out of 3 up
* XMPP: up
* Yarn.social: up*

jed
) vs The Dark (emacs
) vs The Vim vs The Elders (ed
) vs The Nanomachines (nano
) vs The Heathens (evil emacs
)*


(Written from said browser)

meanwhile my things be like

Behold! My Raspberrry Pi 3 Model B
oh boy
age
when I just want to store its arguments on a config file READ by the password manager and then just outputs this:
Soul devotion > kanako add test
flag provided but not defined: -encrypt --identity /home/akoizumi/.kanako/priv.age --armor --output
-rw-r--r-- 0 root bin 874 Mar 7 2022 firmware/brcmfmac43430-sdio.raspberrypi,3-model-b.txt
OH boy