Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
c20f922f
Commit
c20f922f
authored
20 years ago
by
runemaster
Browse files
Options
Downloads
Patches
Plain Diff
Fix nested tags to comply with new template.ssjs
parent
d97ebe73
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
web/root/members/changepw.ssjs
+12
-7
12 additions, 7 deletions
web/root/members/changepw.ssjs
web/templates/default/changepw.inc
+1
-1
1 addition, 1 deletion
web/templates/default/changepw.inc
with
13 additions
and
8 deletions
web/root/members/changepw.ssjs
+
12
−
7
View file @
c20f922f
...
@@ -9,7 +9,7 @@ today = time();
...
@@ -9,7 +9,7 @@ today = time();
var
success
=
false
;
var
success
=
false
;
template
.
backurl
=
http_request
.
header
.
referer
;
var
backurl
=
http_request
.
header
.
referer
;
template
.
resultmsg
=
''
;
template
.
resultmsg
=
''
;
...
@@ -24,31 +24,36 @@ newpw2 = newpw2.toString();
...
@@ -24,31 +24,36 @@ newpw2 = newpw2.toString();
newpw2
=
newpw2
.
toUpperCase
();
newpw2
=
newpw2
.
toUpperCase
();
if
(
oldpw
==
''
)
{
if
(
oldpw
==
''
)
{
template
.
resultmsg
=
"
Old password is empty. Please enter old password.
"
template
.
resultmsg
=
"
Old password is empty. Please enter old password.
"
;
}
}
else
else
if
(
oldpw
!=
user
.
security
.
password
)
{
if
(
oldpw
!=
user
.
security
.
password
)
{
template
.
resultmsg
=
"
Old password is not correct. Please Re-Enter.
"
template
.
resultmsg
=
"
Old password is not correct. Please Re-Enter.
"
;
}
}
else
else
if
(
newpw1
==
''
)
{
if
(
newpw1
==
''
)
{
template
.
resultmsg
=
"
New password cannot be blank! Please enter a new password.
"
;
template
.
resultmsg
=
"
New password cannot be blank! Please enter a new password.
"
;
}
}
else
else
if
(
newpw1
.
length
<
4
)
{
if
(
newpw1
.
length
<
4
)
{
template
.
resultmsg
=
"
New Password must be a minimum of 4 characters. Please Re-Enter.
"
template
.
resultmsg
=
"
New Password must be a minimum of 4 characters. Please Re-Enter.
"
;
}
}
else
else
if
(
newpw1
!=
newpw2
)
{
if
(
newpw1
!=
newpw2
)
{
template
.
resultmsg
=
"
New Passwords do not match. Please Re-Enter.
"
template
.
resultmsg
=
"
New Passwords do not match. Please Re-Enter.
"
;
}
}
else
{
else
{
template
.
resultmsg
=
"
Password Changed Successfully.
"
template
.
resultmsg
=
"
Password Changed Successfully.
"
;
user
.
security
.
password
=
newpw1
;
user
.
security
.
password
=
newpw1
;
user
.
security
.
password_date
=
today
;
user
.
security
.
password_date
=
today
;
success
=
true
;
success
=
true
;
}
}
if
(
success
)
template
.
reponse
=
'
Please <a href="/login.ssjs">Re-Login</a>.
'
;
else
template
.
response
=
'
<a href="
'
+
backurl
+
'
">Back to Change Password Page</a>
'
;
write_template
(
"
header.inc
"
);
write_template
(
"
header.inc
"
);
load
(
"
../web/lib/topnav_html.ssjs
"
);
load
(
"
../web/lib/topnav_html.ssjs
"
);
load
(
"
../web/lib/leftnav_html.ssjs
"
);
load
(
"
../web/lib/leftnav_html.ssjs
"
);
...
...
This diff is collapsed.
Click to expand it.
web/templates/default/changepw.inc
+
1
−
1
View file @
c20f922f
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<td
class=
"main"
valign=
"top"
><br
/>
<td
class=
"main"
valign=
"top"
><br
/>
<h1>
@@resultmsg@@
</h1>
<h1>
@@resultmsg@@
</h1>
@@JS:if(success)'Please
<a
href=
"/login.ssjs"
>
Re-Login
</a>
.'; else'
<a
href=
"@@backurl@@"
>
Back to Change Password Page
</a>
';
@@
@@response
@@
<br
/>
<br
/>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment