-
Notifications
You must be signed in to change notification settings - Fork 1
Reset email, password, fix tokens (fix #21, #4) #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
grigoriev-semyon
merged 12 commits into
main
from
4-кнопка-забыли-пароль+изменение-параметров-email-плагина
Jan 22, 2023
The head ref may contain hidden characters: "4-\u043A\u043D\u043E\u043F\u043A\u0430-\u0437\u0430\u0431\u044B\u043B\u0438-\u043F\u0430\u0440\u043E\u043B\u044C+\u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435-\u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432-email-\u043F\u043B\u0430\u0433\u0438\u043D\u0430"
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f4db121
add email change route,
grigoriev-semyon 8c52005
tests fix
grigoriev-semyon 611307c
email changer fixes,
grigoriev-semyon c73cd0f
password changer init
grigoriev-semyon a71b0f3
fix tests, relations add
grigoriev-semyon de23ddd
refactoring
grigoriev-semyon b34c66b
refactoring
grigoriev-semyon f83feee
All tests passed
grigoriev-semyon bcd811c
review
grigoriev-semyon 07c556e
review
grigoriev-semyon 9a9f6e4
retrying
grigoriev-semyon 29a23c4
tests+
grigoriev-semyon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| FROM python:3.10 | ||
| WORKDIR /app | ||
| FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11 | ||
| ENV APP_NAME=auth_backend | ||
| ENV APP_MODULE=${APP_NAME}.routes.base:app | ||
|
|
||
| COPY ./requirements.txt /app/ | ||
| RUN pip install --no-cache-dir -r /app/requirements.txt | ||
| RUN pip install -U -r /app/requirements.txt | ||
|
|
||
| ADD gunicorn_conf.py alembic.ini /app/ | ||
| ADD migrations /app/migrations | ||
| ADD auth_backend /app/auth_backend | ||
| COPY ./alembic.ini /alembic.ini | ||
| COPY ./migrations /migrations/ | ||
|
|
||
| CMD [ "gunicorn", "-k", "uvicorn.workers.UvicornWorker", "-c", "/app/gunicorn_conf.py", "auth_backend.routes.base:app" ] | ||
| COPY ./${APP_NAME} /app/${APP_NAME} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,16 @@ | ||
| import logging | ||
|
|
||
| import uvicorn | ||
|
|
||
| from auth_backend.routes import app | ||
|
|
||
| if __name__ == '__main__': | ||
|
|
||
| logging.basicConfig( | ||
| filename=f'logger_{__name__}.log', | ||
| level=logging.INFO, | ||
| format='%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s', | ||
| datefmt='%Y-%m-%d %H:%M:%S', | ||
| ) | ||
|
|
||
| uvicorn.run(app) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.