dev
This commit is contained in:
parent
2acc65823b
commit
fceef893c3
@ -7,3 +7,14 @@
|
||||
updateUserState();
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="base-container">
|
||||
<div class="content pt-4">
|
||||
<h1 class="text-center font-semibold">Welcome to CareerConnect!</h1>
|
||||
<h2 class="pt-8 text-center">We are a platform that connects students with employers.</h2>
|
||||
<h2 class="text-center">
|
||||
We provide a platform for students to find internships and co-op opportunities, and for
|
||||
employers to find students to fill their positions.
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,12 +1,7 @@
|
||||
import type { PageServerLoad } from './$types';
|
||||
import {
|
||||
deleteApplication,
|
||||
deleteApplicationWithUser,
|
||||
getUserWithCompanyAndApplications
|
||||
} from '$lib/db/index.server';
|
||||
import { getUserId, getUserPerms } from '$lib/index.server';
|
||||
import { deleteApplicationWithUser, getUserWithCompanyAndApplications } from '$lib/db/index.server';
|
||||
import { getUserId } from '$lib/index.server';
|
||||
import { type Actions, fail } from '@sveltejs/kit';
|
||||
import { PERMISSIONS } from '$lib/consts';
|
||||
|
||||
export const load: PageServerLoad = async ({ cookies }) => {
|
||||
const id = getUserId(cookies);
|
||||
|
||||
@ -37,7 +37,7 @@ export const actions: Actions = {
|
||||
email !== '' &&
|
||||
fullName !== ''
|
||||
) {
|
||||
if (password.length < 8) {
|
||||
if (password.length < 4) {
|
||||
return fail(400, { errorMessage: 'Password must be at least 8 characters' });
|
||||
}
|
||||
const user: User = <User>{
|
||||
|
||||
BIN
static/img.png
Normal file
BIN
static/img.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
Loading…
Reference in New Issue
Block a user