Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sucs-site
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
Container Registry
Model registry
Operate
Environments
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
Alexander Moras
sucs-site
Commits
07f6b98f
Commit
07f6b98f
authored
7 years ago
by
Kit Manners
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of projects.sucs.org:gigosaurus/sucs-site
parents
4063d666
86ccc6b7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/validation.php
+1
-1
1 addition, 1 deletion
lib/validation.php
lib/validationData.php
+1
-1
1 addition, 1 deletion
lib/validationData.php
templates/signup.tpl
+1
-1
1 addition, 1 deletion
templates/signup.tpl
with
3 additions
and
3 deletions
lib/validation.php
+
1
−
1
View file @
07f6b98f
...
...
@@ -132,7 +132,7 @@ function validSID($SID, $override)
$error
=
"A user with that student ID already exists, email <a href=
\"
mailto:admin@sucs.org
\"
>admin@sucs.org</a> if this is an error."
;
return
false
;
}
elseif
(
lookupSID
(
$SID
)
==
" "
)
{
$error
=
"Student not found, email<a href=
\"
mailto:admin@sucs.org
\"
>admin@sucs.org</a> if this is an error."
;
$error
=
"Student not found, email
<a href=
\"
mailto:admin@sucs.org
\"
>admin@sucs.org</a> if this is an error."
;
return
false
;
}
else
{
return
true
;
...
...
This diff is collapsed.
Click to expand it.
lib/validationData.php
+
1
−
1
View file @
07f6b98f
...
...
@@ -7,7 +7,7 @@ function lookupSID($sid)
$sr
=
ldap_search
(
$ds
,
"ou=Active,ou=Resources,o=Swansea"
,
"EDUPERSONTARGETEDID="
.
$sid
);
$info
=
ldap_get_entries
(
$ds
,
$sr
);
ldap_unbind
(
$ds
);
return
ucwords
(
strtolower
(
$info
[
0
][
'given
N
ame'
][
0
]
.
" "
.
$info
[
0
][
'sn'
][
0
]));
return
ucwords
(
strtolower
(
$info
[
0
][
'given
n
ame'
][
0
]
.
" "
.
$info
[
0
][
'sn'
][
0
]));
}
// lookup addresses from postcodes using the university's website
...
...
This diff is collapsed.
Click to expand it.
templates/signup.tpl
+
1
−
1
View file @
07f6b98f
...
...
@@ -136,7 +136,7 @@
{
if
!
$failed
}
<h1>
Welcome to SUCS
</h1>
<p>
Signup is complete, please see below for your password, a copy has also been send to
{
$email
}
, we request you
change this immediat
l
ey. See our
<a
href=
"
{
$baseurl
}
/Getting%20Started"
>
Getting Started
</a>
page for some
change this immediate
l
y. See our
<a
href=
"
{
$baseurl
}
/Getting%20Started"
>
Getting Started
</a>
page for some
ways you can start using your new SUCS account!
</p>
<p>
Username:
<strong>
{
$username
}
</strong><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