Yarn

Recent twts in reply to #6wzkhqa

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

(#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

(#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
Login to participate in this yarn.