mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-25 12:34:32 +00:00
feat: Registration page
This commit is contained in:
@@ -18,7 +18,11 @@
|
||||
async function handleSubmit() {
|
||||
loading = true;
|
||||
try {
|
||||
const { teamId } = await post(`/login.json`, { email: email.toLowerCase(), password });
|
||||
const { teamId } = await post(`/login.json`, {
|
||||
email: email.toLowerCase(),
|
||||
password,
|
||||
isLogin: true
|
||||
});
|
||||
if (teamId === '0') {
|
||||
window.location.replace('/settings');
|
||||
} else {
|
||||
@@ -67,7 +71,13 @@
|
||||
class:text-stone-600={loading}
|
||||
class:bg-coollabs={!loading}>{loading ? 'Authenticating...' : 'Login'}</button
|
||||
>
|
||||
<button on:click|preventDefault={() => goto('/reset')}>Reset password</button>
|
||||
<button
|
||||
on:click|preventDefault={() => goto('/register')}
|
||||
class="hover:opacity-90 text-white">Register</button
|
||||
>
|
||||
<button class="bg-transparent" on:click|preventDefault={() => goto('/reset')}
|
||||
>Reset password</button
|
||||
>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user