Use multipart/form-data for forms

This commit is contained in:
jaina heartles 2022-12-11 20:36:22 -08:00
parent 04fdd2ae8e
commit 6d18209d29
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<header> <header>
<h2>{ %community.name }</h2> <h2>{ %community.name }</h2>
</header> </header>
<form action="/login" method="post"> <form action="/login" method="post" enctype="multipart/form-data">
<h3>Login</h3> <h3>Login</h3>
<label> <label>
<div>Username</div> <div>Username</div>

View file

@ -1,4 +1,4 @@
<form action="/cluster/communities/create" method="post"> <form action="/cluster/communities/create" method="post" enctype="multipart/form-data">
<h2>Create Local Community</h2> <h2>Create Local Community</h2>
<label> <label>
<div>Origin</div> <div>Origin</div>

View file

@ -1,7 +1,7 @@
<header> <header>
<h2>{ %community.name }</h2> <h2>{ %community.name }</h2>
</header> </header>
<form action="/signup" method="post"> <form action="/signup" method="post" enctype="multipart/form-data">
<h3>Sign Up</h3> <h3>Sign Up</h3>
{#if .error_msg |$msg| =} {#if .error_msg |$msg| =}
<div class="error">Error: {$msg}</div> <div class="error">Error: {$msg}</div>