diff --git a/Server/app/resources/authentication/AuthenticationController.jl b/Server/app/resources/authentication/AuthenticationController.jl
index bd2f1a7..b34752d 100644
--- a/Server/app/resources/authentication/AuthenticationController.jl
+++ b/Server/app/resources/authentication/AuthenticationController.jl
@@ -85,6 +85,17 @@ const auth_info = Dict(
)
)
+const reset_password_info = Dict(
+ "en" => Dict(
+ :title => "LibSoc - Reset password",
+ :description => ""
+ ),
+ "ru" => Dict(
+ :title => "LibSoc - Восстановление пароля",
+ :description => ""
+ )
+)
+
#---Routing functions---------------------------------------------------
@@ -93,6 +104,7 @@ const dict_layouts = Dict(
:auth => generate_layout_html("main",controller,"auth",libraries=["GoogleAuth"]),
:profile => generate_layout_html("main",controller,"profile",libraries=["Leaflet"]),
:email_confirmation => generate_layout_html("main",controller,"email_confirmation"),
+ :reset_password => generate_layout_html("main",controller,"reset_password")
)
function auth()
@@ -120,6 +132,15 @@ function email_confirmation()
)
end
+function reset_password()
+ locale = get_locale()
+ set_cookies(params())
+ html(:authentication,:reset_password, layout = dict_layouts[:reset_password], context = @__MODULE__,
+ title = reset_password_info[locale][:title],
+ description = reset_password_info[locale][:description]
+ )
+end
+
function confirm_email()
code = rawpayload()
user = current_user()
diff --git a/Server/app/resources/authentication/views/reset_password.jl.html b/Server/app/resources/authentication/views/reset_password.jl.html
new file mode 100644
index 0000000..dda6a2e
--- /dev/null
+++ b/Server/app/resources/authentication/views/reset_password.jl.html
@@ -0,0 +1,2 @@
+
+
diff --git a/Server/app/svelte/rollup.config.js b/Server/app/svelte/rollup.config.js
index bade40b..d9f00c2 100644
--- a/Server/app/svelte/rollup.config.js
+++ b/Server/app/svelte/rollup.config.js
@@ -10,7 +10,6 @@ import watch from "rollup-plugin-watch";
const production = !process.env.ROLLUP_WATCH;
-
function serve() {
let server;
diff --git a/Server/app/svelte/src/auth/login-component.svelte b/Server/app/svelte/src/auth/login-component.svelte
index 17ffffc..0acbeeb 100644
--- a/Server/app/svelte/src/auth/login-component.svelte
+++ b/Server/app/svelte/src/auth/login-component.svelte
@@ -25,6 +25,7 @@
let googleButton
let parentProps = getContext("auth")
+ let locale = "en"
function renderGoogle() {
if (parentProps.googleInit) {
@@ -80,7 +81,7 @@
-
+ Forgot password?