Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszkepzes-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
KSZK
DevTeam
kszkepzes
old
kszkepzes-backend
Commits
2589fee8
Commit
2589fee8
authored
6 years ago
by
Bodor Máté
Browse files
Options
Downloads
Patches
Plain Diff
First login send email with gmail test account
parent
4e1c6219
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
src/account/auth_pipeline.py
+2
-2
2 additions, 2 deletions
src/account/auth_pipeline.py
src/account/models.py
+0
-1
0 additions, 1 deletion
src/account/models.py
src/kszkepzes/settings/base.py
+5
-2
5 additions, 2 deletions
src/kszkepzes/settings/base.py
with
7 additions
and
5 deletions
src/account/auth_pipeline.py
+
2
−
2
View file @
2589fee8
from
django.core
import
exceptions
from
django.http
import
HttpResponseServerError
from
django.core.mail
import
send_mail
from
.
import
models
...
...
@@ -11,4 +10,5 @@ def create_profile(backend, user, response, *args, **kwargs):
user
.
profile
except
exceptions
.
ObjectDoesNotExist
:
models
.
Profile
.
objects
.
create
(
user
=
user
)
send_mail
(
'
TESZT
'
,
'
Attiss meleg!4!!
'
,
'
noreply@keszkepzes.sch.bme.hu
'
,
user
.
email
)
if
user
.
email
is
not
None
:
send_mail
(
'
TESZT
'
,
'
Attiss meleg!4!!
'
,
'
noreply@devteam.sch.bme.hu
'
,
[
user
.
email
,
])
This diff is collapsed.
Click to expand it.
src/account/models.py
+
0
−
1
View file @
2589fee8
from
django.db
import
models
from
django.contrib.auth.models
import
User
from
solo.models
import
SingletonModel
from
common.middleware
import
CurrentUserMiddleware
class
GroupChoice
(
models
.
Model
):
...
...
This diff is collapsed.
Click to expand it.
src/kszkepzes/settings/base.py
+
5
−
2
View file @
2589fee8
...
...
@@ -159,6 +159,9 @@ STATIC_URL = '/django-static/'
MEDIA_ROOT
=
os
.
getenv
(
'
MEDIA_ROOT
'
,
'
/tmp
'
)
MEDIA_URL
=
'
/media/
'
EMAIL_
HOST
=
'
mail.sch.bme.hu
'
EMAIL_
POR
T
=
587
EMAIL_
BACKEND
=
'
django.core.mail.backends.smtp.EmailBackend
'
EMAIL_
HOS
T
=
'
smtp.gmail.com
'
EMAIL_USE_TLS
=
True
EMAIL_PORT
=
587
EMAIL_HOST_USER
=
'
bmate711kamu@gmail.com
'
EMAIL_HOST_PASSWORD
=
'
1IronxDog
'
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