Added "forgot password?" back

This commit is contained in:
a-ill
2023-08-02 00:42:25 +03:00
parent bebd1e2636
commit 12999c764e
44 changed files with 112 additions and 37 deletions

View File

@@ -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()

View File

@@ -0,0 +1,2 @@
<reset-password-component></reset-password-component>