Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
9e8dc36e
Commit
9e8dc36e
authored
Aug 28, 2016
by
David Haynes
Browse files
Merge branch 'master' of git.gmu.edu:srct/go
parents
e33efa62
cdccd2ac
Pipeline
#324
passed with stages
in 24 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
go/go/templates/layouts/base.html
View file @
9e8dc36e
...
...
@@ -16,6 +16,7 @@
<meta
name=
"description"
content=
"University branded URL shortener."
>
<meta
name=
"author"
content=
"Mason SRCT"
>
<meta
name=
"robots"
content=
"all"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<link
href=
"http://fonts.googleapis.com/css?family=Carrois+Gothic"
rel=
"stylesheet"
type=
"text/css"
>
<link
href=
"//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"
rel=
"stylesheet"
>
...
...
go/go/views.py
View file @
9e8dc36e
...
...
@@ -173,7 +173,7 @@ def signup(request):
# Only send mail if we've defined the mailserver
if
settings
.
EMAIL_HOST
and
settings
.
EMAIL_PORT
:
user_mail
=
request
.
user
.
registereduser
.
user
+
settings
.
EMAIL_DOMAIN
user_mail
=
request
.
user
.
user
name
+
settings
.
EMAIL_DOMAIN
# Email sent to notify Admins
to_admin
=
EmailMessage
(
'Signup from %s'
%
(
request
.
user
.
registereduser
.
user
),
...
...
@@ -285,7 +285,7 @@ def useradmin(request):
toapprove
.
approved
=
True
toapprove
.
save
()
if
settings
.
EMAIL_HOST
and
settings
.
EMAIL_PORT
:
user_mail
=
toapprove
.
user
+
settings
.
EMAIL_DOMAIN
user_mail
=
toapprove
.
user
.
username
+
settings
.
EMAIL_DOMAIN
send_mail
(
'Your Account has been Approved!'
,
######################
...
...
Write
Preview
Markdown
is supported
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