diff --git a/res/static/img/header_orbitron.webp b/res/static/img/header_orbitron.webp index a2c90d7..ec67362 100644 Binary files a/res/static/img/header_orbitron.webp and b/res/static/img/header_orbitron.webp differ diff --git a/res/static/img/header_orbitron.xcf b/res/static/img/header_orbitron.xcf index 9927ab3..f09c81e 100644 Binary files a/res/static/img/header_orbitron.xcf and b/res/static/img/header_orbitron.xcf differ diff --git a/svelte/src/file_viewer/viewers/Video.svelte b/svelte/src/file_viewer/viewers/Video.svelte index 34665d5..cf138f5 100644 --- a/svelte/src/file_viewer/viewers/Video.svelte +++ b/svelte/src/file_viewer/viewers/Video.svelte @@ -163,10 +163,11 @@ const fullscreen = () => { - The online video player on pixeldrain is only available if the viewer or - the uploader of the video has a registered pixeldrain account. You can - still download the video and watch it locally on your computer without - an account. + The online video player on pixeldrain is only available while logged in + to an account, or if the uploading user has verified their e-mail + address. You can still download the video and watch it locally on your + computer without an account. +
@@ -37,8 +58,10 @@ const click = e => { + + {#if page === "login"} +
+ +

+ If you have lost your password, you can request a new password here. +

+
+ {:else if page === "register"} +
+ +
+ {/if} + +
+{/if} + + diff --git a/svelte/src/login/Login.svelte b/svelte/src/login/Login.svelte new file mode 100644 index 0000000..64aff13 --- /dev/null +++ b/svelte/src/login/Login.svelte @@ -0,0 +1,43 @@ + + +
diff --git a/svelte/src/login/Register.svelte b/svelte/src/login/Register.svelte new file mode 100644 index 0000000..042c7b7 --- /dev/null +++ b/svelte/src/login/Register.svelte @@ -0,0 +1,109 @@ + + +
diff --git a/svelte/src/util/Form.svelte b/svelte/src/util/Form.svelte index b661a2a..7bce136 100644 --- a/svelte/src/util/Form.svelte +++ b/svelte/src/util/Form.svelte @@ -34,6 +34,8 @@ let submit_result = { messages: null, } +let form_elem + let submit = async (event) => { loading = true event.preventDefault() @@ -49,6 +51,8 @@ let submit = async (event) => { } } else if (field.type === "description") { field_values[field.name] = "" + } else if (field.type === "captcha") { + field_values[field.name] = form_elem.getElementsByClassName("g-recaptcha-response")[0].value } else { field_values[field.name] = field.binding.value } @@ -107,7 +111,7 @@ let handle_errors = (response) => { } -
+ {#if submitted} {#if submit_result.messages}