Showing the frontend and backend version in the settings panel.
Bumped the version to 7.6.0
This commit is contained in:
1
brewman/__version__.py
Normal file
1
brewman/__version__.py
Normal file
@ -0,0 +1 @@
|
||||
__version__ = "7.6.0"
|
||||
@ -14,6 +14,7 @@ from fastapi.responses import JSONResponse
|
||||
from fastapi.security import OAuth2PasswordRequestForm
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from .. import __version__
|
||||
from ..core.config import settings
|
||||
from ..core.security import (
|
||||
Token,
|
||||
@ -85,6 +86,7 @@ async def login_for_access_token(
|
||||
),
|
||||
"userId": str(user.id),
|
||||
"lockedOut": user.locked_out,
|
||||
"ver": __version__.__version__,
|
||||
},
|
||||
expires_delta=access_token_expires,
|
||||
)
|
||||
@ -100,6 +102,7 @@ async def refresh_token(user: UserToken = Security(get_current_active_user)):
|
||||
"scopes": user.permissions,
|
||||
"userId": str(user.id_),
|
||||
"lockedOut": user.locked_out,
|
||||
"ver": __version__.__version__,
|
||||
},
|
||||
expires_delta=access_token_expires,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user