Fix most glaring bugs and vulnerabilities
This commit is contained in:
@@ -16,7 +16,7 @@ block body
|
||||
|
||||
.content-hold-prerequisites
|
||||
#offset-main.main-container.mt-2
|
||||
form.needs-validation(method="post" novalidate)
|
||||
form#profileForm.needs-validation(method="post" novalidate)
|
||||
div
|
||||
.subject-name
|
||||
label.input-name-txt(for="password-old") #{ t('STARO GESLO') }
|
||||
@@ -24,7 +24,7 @@ block body
|
||||
.col-sm-6.align-items-center
|
||||
input#password-old.name-input.form-control.d-inline(
|
||||
type="password"
|
||||
name="password-old"
|
||||
name="passwordOld"
|
||||
value=""
|
||||
)
|
||||
.invalid-feedback #{ t('Napačno geslo.') }
|
||||
@@ -39,7 +39,7 @@ block body
|
||||
.col-sm-6
|
||||
input#password-new.name-input.form-control.d-inline(
|
||||
type="password"
|
||||
name="password-new"
|
||||
name="passwordNew"
|
||||
minLength="1"
|
||||
value=""
|
||||
)
|
||||
@@ -55,7 +55,7 @@ block body
|
||||
.col-sm-6
|
||||
input#password-repeat.name-input.form-control.d-inline(
|
||||
type="password"
|
||||
name="password-repeat"
|
||||
name="passwordNewRepeat"
|
||||
minLength="1"
|
||||
value=""
|
||||
)
|
||||
|
||||
@@ -92,3 +92,5 @@ block body
|
||||
span.ps-2.text-white #{ t('IZBRIŠI') }
|
||||
include /common/footer
|
||||
include /utilities/modal-alert
|
||||
include /utilities/modal-info
|
||||
+modalInfo
|
||||
|
||||
@@ -7,31 +7,31 @@ mixin sideNavigation(sideNavigationData)
|
||||
src="/images/burger-menu-button-icon.svg"
|
||||
alt=t('Meni')
|
||||
)
|
||||
span.nav-title #{ t('Moj Profil') }
|
||||
span.nav-title #{ t('Moj Račun') }
|
||||
#mobile-right-holder
|
||||
nav
|
||||
ul.admin-nav-content.slidable.scroller-style
|
||||
li(
|
||||
li.p-0(
|
||||
class=sideNavigationData.selection === 'change-profile-data' ? 'focused-menu' : 'admin-nav-item'
|
||||
)
|
||||
a.active(href="/moj-racun")
|
||||
a.p-2.active(href="/moj-racun")
|
||||
img(src="/images/user-gray.svg" alt=t('Basic'))
|
||||
p #{ t('Osnovni podatki') }
|
||||
li(
|
||||
li.p-0(
|
||||
class=sideNavigationData.selection === 'change-profile-password' ? 'focused-menu' : 'admin-nav-item'
|
||||
)
|
||||
a.active(href="/spremeni-geslo")
|
||||
a.p-2.active(href="/spremeni-geslo")
|
||||
img(src="/images/lock-gray.svg" alt=t('Settings'))
|
||||
p #{ t('Spremeni geslo') }
|
||||
li(
|
||||
li.p-0(
|
||||
class=sideNavigationData.selection === 'change-profile-settings' ? 'focused-menu' : 'admin-nav-item'
|
||||
)
|
||||
a.active(href="/nastavitve-racuna")
|
||||
a.p-2.active(href="/nastavitve-racuna")
|
||||
img(src="/images/cog.svg" alt=t('Settings'))
|
||||
p #{ t('Nastavitve') }
|
||||
li(
|
||||
li.p-0(
|
||||
class=sideNavigationData.selection === 'delete-profile' ? 'focused-menu' : 'admin-nav-item'
|
||||
)
|
||||
a.active(href="/izbrisi-racun")
|
||||
a.p-2.active(href="/izbrisi-racun")
|
||||
img(src="/images/user-x.svg" alt=t('Delete profile'))
|
||||
p #{ t('Izbriši račun') }
|
||||
|
||||
@@ -35,12 +35,12 @@ block body
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="profile-name") #{ t('IME') }
|
||||
label.input-name-txt(for="profile-first-name") #{ t('IME') }
|
||||
.row
|
||||
.col-sm-6
|
||||
input#profile-name.name-input.form-control.d-inline(
|
||||
input#profile-first-name.name-input.form-control.d-inline(
|
||||
type="text"
|
||||
name="name"
|
||||
name="firstName"
|
||||
minLength="1"
|
||||
value=user.firstName
|
||||
)
|
||||
@@ -51,12 +51,12 @@ block body
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="profile-surname") #{ t('PRIIMEK') }
|
||||
label.input-name-txt(for="profile-last-name") #{ t('PRIIMEK') }
|
||||
.row
|
||||
.col-sm-6
|
||||
input#profile-surname.name-input.form-control.d-inline(
|
||||
input#profile-last-name.name-input.form-control.d-inline(
|
||||
type="text"
|
||||
name="surname"
|
||||
name="lastName"
|
||||
minLength="1"
|
||||
value=user.lastName
|
||||
)
|
||||
@@ -67,10 +67,10 @@ block body
|
||||
|
||||
.mt-4
|
||||
.subject-name
|
||||
label.input-name-txt(for="profile-surname") #{ t('ELEKTRONSKI NASLOV') }
|
||||
label.input-name-txt(for="profile-email") #{ t('ELEKTRONSKI NASLOV') }
|
||||
.row
|
||||
.col-sm-6
|
||||
input#profile-surname.name-input.form-control.d-inline(
|
||||
input#profile-email.name-input.form-control.d-inline(
|
||||
type="text"
|
||||
name="email"
|
||||
minLength="1"
|
||||
|
||||
Reference in New Issue
Block a user