Skip to content
GitLab
Menu
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
07447323
Commit
07447323
authored
Nov 10, 2015
by
Leigh B Stoller
Browse files
If a user came in via the GENI api before using the portal, they will
not be in the holding project, so add them.
parent
cde21422
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/aptui/geni-login.ajax
View file @
07447323
...
...
@@ -353,6 +353,20 @@ function Do_VerifySpeaksfor()
return
;
}
}
else
{
#
# Ug, if this geni user came in on the regular geni api first,
# we have a user record but they might not be a member of the
# Cloudlab holding project.
#
if
(
$TBMAINSITE
)
{
$project
=
Project
::
Lookup
(
"CloudLab"
);
if
(
!
$project
->
IsMember
(
$this_user
,
$ignored
))
{
$project
->
AddNewMember
(
$this_user
,
TBDB_TRUSTSTRING_LOCALROOT
);
}
}
}
}
list
(
$loginhash
,
$logincrc
)
=
DOLOGIN_MAGIC
(
$this_user
->
uid
(),
$this_user
->
uid_idx
(),
null
,
0
,
1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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