Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
95cfe292
Commit
95cfe292
authored
10 years ago
by
Christopher Schäpers
Committed by
Christopher Schäpers
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make the password changed msg inline to fix #10242
parent
9baf7a0a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
settings/css/settings.css
+0
-2
0 additions, 2 deletions
settings/css/settings.css
settings/js/personal.js
+9
-4
9 additions, 4 deletions
settings/js/personal.js
settings/templates/personal.php
+4
-3
4 additions, 3 deletions
settings/templates/personal.php
with
13 additions
and
9 deletions
settings/css/settings.css
+
0
−
2
View file @
95cfe292
...
@@ -25,8 +25,6 @@ input#openid, input#webdav { width:20em; }
...
@@ -25,8 +25,6 @@ input#openid, input#webdav { width:20em; }
font-weight
:
bold
;
font-weight
:
bold
;
}
}
#passworderror
{
display
:
none
;
}
#passwordchanged
{
display
:
none
;
}
#displaynameerror
{
display
:
none
;
}
#displaynameerror
{
display
:
none
;
}
#displaynamechanged
{
display
:
none
;
}
#displaynamechanged
{
display
:
none
;
}
input
#identity
{
width
:
20em
;
}
input
#identity
{
width
:
20em
;
}
...
...
This diff is collapsed.
Click to expand it.
settings/js/personal.js
+
9
−
4
View file @
95cfe292
...
@@ -182,20 +182,25 @@ $(document).ready(function () {
...
@@ -182,20 +182,25 @@ $(document).ready(function () {
if
(
data
.
status
===
"
success
"
)
{
if
(
data
.
status
===
"
success
"
)
{
$
(
'
#pass1
'
).
val
(
''
);
$
(
'
#pass1
'
).
val
(
''
);
$
(
'
#pass2
'
).
val
(
''
);
$
(
'
#pass2
'
).
val
(
''
);
$
(
'
#passwordchanged
'
).
show
();
// Hide a possible errormsg and show successmsg
$
(
'
#password-changed
'
).
removeClass
(
'
hidden
'
).
addClass
(
'
inlineblock
'
);
$
(
'
#password-error
'
).
removeClass
(
'
inlineblock
'
).
addClass
(
'
hidden
'
);
}
else
{
}
else
{
if
(
typeof
(
data
.
data
)
!==
"
undefined
"
)
{
if
(
typeof
(
data
.
data
)
!==
"
undefined
"
)
{
$
(
'
#passworderror
'
).
html
(
data
.
data
.
message
);
$
(
'
#passworderror
'
).
html
(
data
.
data
.
message
);
}
else
{
}
else
{
$
(
'
#passworderror
'
).
html
(
t
(
'
Unable to change password
'
));
$
(
'
#passworderror
'
).
html
(
t
(
'
Unable to change password
'
));
}
}
$
(
'
#passworderror
'
).
show
();
// Hide a possible successmsg and show errormsg
$
(
'
#password-changed
'
).
removeClass
(
'
inlineblock
'
).
addClass
(
'
hidden
'
);
$
(
'
#password-error
'
).
removeClass
(
'
hidden
'
).
addClass
(
'
inlineblock
'
);
}
}
});
});
return
false
;
return
false
;
}
else
{
}
else
{
$
(
'
#passwordchanged
'
).
hide
();
// Hide a possible successmsg and show errormsg
$
(
'
#passworderror
'
).
show
();
$
(
'
#password-changed
'
).
removeClass
(
'
inlineblock
'
).
addClass
(
'
hidden
'
);
$
(
'
#password-error
'
).
removeClass
(
'
hidden
'
).
addClass
(
'
inlineblock
'
);
return
false
;
return
false
;
}
}
...
...
This diff is collapsed.
Click to expand it.
settings/templates/personal.php
+
4
−
3
View file @
95cfe292
...
@@ -69,9 +69,10 @@ if($_['passwordChangeSupported']) {
...
@@ -69,9 +69,10 @@ if($_['passwordChangeSupported']) {
script
(
'jquery-showpassword'
);
script
(
'jquery-showpassword'
);
?>
?>
<form
id=
"passwordform"
class=
"section"
>
<form
id=
"passwordform"
class=
"section"
>
<h2>
<?php
p
(
$l
->
t
(
'Password'
));
?>
</h2>
<h2
class=
"inlineblock"
>
<?php
p
(
$l
->
t
(
'Password'
));
?>
</h2>
<div
id=
"passwordchanged"
>
<?php
echo
$l
->
t
(
'Your password was changed'
);
?>
</div>
<div
class=
"hidden icon-checkmark"
id=
"password-changed"
></div>
<div
id=
"passworderror"
>
<?php
echo
$l
->
t
(
'Unable to change your password'
);
?>
</div>
<div
class=
"hidden"
id=
"password-error"
>
<?php
p
(
$l
->
t
(
'Unable to change your password'
));
?>
</div>
<br>
<input
type=
"password"
id=
"pass1"
name=
"oldpassword"
<input
type=
"password"
id=
"pass1"
name=
"oldpassword"
placeholder=
"
<?php
echo
$l
->
t
(
'Current password'
);
?>
"
placeholder=
"
<?php
echo
$l
->
t
(
'Current password'
);
?>
"
autocomplete=
"off"
autocapitalize=
"off"
autocorrect=
"off"
/>
autocomplete=
"off"
autocapitalize=
"off"
autocorrect=
"off"
/>
...
...
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