Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
7420adb8
Commit
7420adb8
authored
Feb 25, 2016
by
Leigh B Stoller
Browse files
Oops, do not allow geni users to set their password, they have to use the
trusted signer to log in.
parent
ae3f37d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/aptui/js/myaccount.js
View file @
7420adb8
...
...
@@ -54,6 +54,7 @@ function (_, sup, myaccountString, verifyString, oopsString, waitwaitString)
formfields
:
formfields
,
general_error
:
(
errors
.
error
||
''
),
verify_modal
:
verify
,
nopassword
:
window
.
APT_OPTIONS
.
nopassword
,
}),
errors
);
$
(
'
#page-body
'
).
html
(
myaccount
);
...
...
www/aptui/myaccount.php
View file @
7420adb8
...
...
@@ -76,7 +76,22 @@ $defaults["state"] = $target_user->state();
$defaults
[
"country"
]
=
$target_user
->
country
();
$defaults
[
"affiliation"
]
=
$target_user
->
affil
();
#
# See the comment in signup.php about "promoting" geni users to
# local users that can start projects. These users do not get a
# password change box, we do not want them coming in that way,
# they have to use the trusted signer. As noted in signup.php,
# we need a flag for this kind of user.
#
$nopassword
=
0
;
if
(
!
$target_user
->
country
()
||
$target_user
->
country
()
==
""
)
{
$nopassword
=
1
;
}
SPITHEADER
(
1
);
echo
"<script>
\n
"
;
echo
"window.APT_OPTIONS.nopassword =
$nopassword
;
\n
"
;
echo
"</script>
\n
"
;
echo
"<link rel='stylesheet' href='css/bootstrap-formhelpers.min.css'>
\n
"
;
echo
"<div id='page-body'></div>
\n
"
;
echo
"<div id='oops_div'></div>
\n
"
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment