diff options
| author | Debulois <quentin@debulois.fr> | 2022-05-01 23:24:19 +0200 |
|---|---|---|
| committer | Debulois <quentin@debulois.fr> | 2022-05-01 23:24:19 +0200 |
| commit | 809f5c2c7ce0bdf05287c6f1b5ec1330efb0c469 (patch) | |
| tree | 786477393b2608d3dd118d3e9ae4e57380804b5a /src/app/mainLogout.py | |
| parent | 1eaf21fd423e5dedf1ed4361b0e9b6cbbcfc9fa0 (diff) | |
Ajout du système pour mandater et mise en page des documents
Diffstat (limited to 'src/app/mainLogout.py')
| -rw-r--r-- | src/app/mainLogout.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/app/mainLogout.py b/src/app/mainLogout.py new file mode 100644 index 0000000..4df4273 --- /dev/null +++ b/src/app/mainLogout.py @@ -0,0 +1,18 @@ + +from PyQt5.QtWidgets import QMessageBox + + +def core_logout(mainWindow: object) -> None: + """""" + if mainWindow.userConnected == True: + mainWindow.userConnected = False + mainWindow.userId = "" + mainWindow.userEmail = "" + mainWindow.userInscrDate = "" + mainWindow.userStatus = "" + + QMessageBox.information( + mainWindow, + "Déconnection", + "Vous êtes déconnecté." + ) |
