Commit Graph
100 Commits
Author SHA1 Message Date
StNicolay 777ad8e311 2024 edition 2025-02-21 16:40:42 +03:00
StNicolay d064b8d571 Updated dependencies 2025-01-09 15:53:50 +03:00
StNicolay 5a276f2efc Updated dependencies to mitigate the sqlx vulnerability 2024-08-25 16:41:51 +03:00
StNicolay e3f121e0d6 Switched to toml for locales 2024-08-18 03:30:11 +03:00
StNicolay 659965a744 Introduced GetUserExt 2024-08-17 18:35:50 +03:00
StNicolay 374a9d91c7 Switched to teloxide 0.13 2024-08-17 15:54:55 +03:00
StNicolay 14b858808d Updated derive more to v1. Removed thiserror 2024-08-11 12:19:33 +03:00
StNicolay 5c789533e3 Updated to Rust 1.80 and changed to LazyLock 2024-07-25 17:45:36 +03:00
StNicolay 4121857854 Updated sqlx to 0.8 2024-07-23 21:58:39 +03:00
StNicolay c8cc82c208 Removed unused CallbackCommand::Hide 2024-06-17 19:19:38 +03:00
StNicolay 3afc9d8f19 Added .vscode to .gitignore 2024-05-18 13:10:28 +03:00
StNicolay b035a240a3 Updated deps 2024-05-18 12:23:51 +03:00
StNicolay 25b02ba99a Removed inlines 2024-05-13 13:58:56 +03:00
StNicolay 064ec22e51 Minor fixes 2024-05-12 17:03:40 +03:00
StNicolay aa3c2ae313 Code cleanup 2024-05-11 17:25:15 +03:00
StNicolay 913d90f077 Moved dispatching into a sepparate module 2024-05-07 12:29:13 +03:00
StNicolay 5871943c01 Made cryptography and entity modules
Coupling was rising so it just makes sense
2024-05-05 18:38:21 +03:00
StNicolay 9af37f78b2 Locale bug fixing 2024-05-02 17:01:24 +03:00
StNicolay e8be611404 Switched to tracing for logging 2024-05-02 16:50:05 +03:00
StNicolay 4ac34a73bb Moved error handling to one function 2024-04-29 13:40:31 +03:00
StNicolay ff1d5a039d Updated altering accounts to handle errors 2024-04-26 18:22:35 +03:00
StNicolay 2eff5f3f4e Updated README.md 2024-04-23 18:42:55 +03:00
StNicolay 1b9fa77b13 Imporved logging and added debug information to get backtraces when errors are encountered 2024-04-23 18:19:35 +03:00
StNicolay 305b796d51 Added LocaleString type that can be converted to String to reduce the ammount of as_refs 2024-04-22 15:17:51 +03:00
StNicolay 86c7b4d0c4 Removed version from compose.yaml 2024-04-21 11:28:12 +03:00
StNicolay 42bbc6429a Locale fixes 2024-04-17 15:13:57 +03:00
StNicolay 84254778e8 Changed button order in account markup 2024-04-16 18:13:08 +03:00
StNicolay e9eac89d09 Changed markup row width to 2 2024-04-16 18:06:11 +03:00
StNicolay c5855fced7 Added support for multiple languages 2024-04-16 16:02:48 +03:00
StNicolay aded63f9d5 fixed delete command 2024-03-07 17:30:49 +03:00
StNicolay bc4b114ad7 Updated deps 2024-03-05 16:38:31 +03:00
StNicolay b526eb0c12 Code cleanup 2024-02-22 12:44:02 +03:00
StNicolay 8979cc5b25 Fixed error messages 2024-02-11 12:12:14 +03:00
StNicolay 40515c463a Improved error handling in GetUser state handler 2024-02-10 19:28:16 +03:00
StNicolay a359364606 Removed utils mod, moved hexing the name to entity library 2024-02-03 16:31:19 +03:00
StNicolay e8f0fcd819 Renamed DatabaseConnection into Pool 2024-02-03 16:23:39 +03:00
StNicolay bd10acb438 Code cleanup
Moved migrations/ into entity/
MessageIds now return errors except for API ones
2024-02-03 16:21:16 +03:00
StNicolay 64e3210cc5 Fixed Cipher::decrypt and added tests for account encryption 2024-01-27 12:45:40 +03:00
StNicolay 9db3e8f7fe Enabled lto for release mod 2024-05-18 12:59:45 +03:00
StNicolay 9f967e82d5 Switched from sea-orm to sqlx 2023-11-25 19:29:06 +03:00
StNicolay e4e33f52b1 Updated cryptography functions to be in-place 2023-11-19 15:54:01 +03:00
StNicolay bfd68194e6 More clippy fixes 2023-11-19 14:45:46 +03:00
StNicolay 6ae745fcd4 Enabled clippy warnings and fixed them 2023-11-16 21:51:46 +03:00
StNicolay f0116b3207 Updated itertools and other deps 2023-11-16 17:11:28 +03:00
StNicolay 3819f68b15 Switched from rustc-hash with ahash 2023-09-04 21:25:43 +03:00
StNicolay 072596a797 added a filter for messages without user information 2023-08-12 17:37:27 +03:00
StNicolay df7a78a1c7 Removed a need for parse_mode to be copy 2023-08-12 16:29:03 +03:00
StNicolay d52a34d10a Split up TEXT constant into 2 lines 2023-08-12 13:08:02 +03:00
StNicolay 4fbb0d101e Added a check for master password existance for callbacks 2023-08-11 16:00:35 +03:00
StNicolay 79fce0a58f Renamed mod.rs files 2023-08-11 15:20:49 +03:00
StNicolay 06492bf31e Updated delete callback handler to alter a message if /delete command was used 2023-08-11 15:15:35 +03:00
StNicolay 6691ab12de Updated deps and switched from dotenv to dotenvy 2023-08-11 15:08:40 +03:00
StNicolay 21a5851420 Added README 2023-08-08 15:27:55 +03:00
StNicolay 2976d7f9f3 Added the check that accounts exist for /get_account and /delete 2023-08-08 15:09:13 +03:00
StNicolay 4b49d820fc Unified the way we handle the case, where the name hash is invalid 2023-08-07 13:54:52 +03:00
StNicolay 2199889127 Added MORE inlines 2023-08-07 13:38:46 +03:00
StNicolay 857f268f1d set_master_pass now asks for the master password twice 2023-08-07 13:22:47 +03:00
StNicolay 1cc486bdc5 changed the way we set the markup in alter_message 2023-08-07 01:21:15 +03:00
StNicolay 3bc97d7bbc Updated deps 2023-08-06 17:16:29 +03:00
StNicolay 386f060a41 Implemented account altering 2023-08-04 00:23:02 +03:00
StNicolay ab62e74cb7 Updated sea-orm 2023-08-03 23:11:28 +03:00
StNicolay 7380140b7e now answering callback queries 2023-07-29 16:12:41 +03:00
StNicolay b415277769 Added export handler macro 2023-07-29 16:07:53 +03:00
StNicolay 42088e69fe Moved the /menu up in the list of commands 2023-07-29 16:00:02 +03:00
StNicolay 0fac457944 Added a mention of /set_master_pass when it is not set 2023-07-29 15:59:11 +03:00
StNicolay c06879b08e added missing return 2023-07-29 15:57:17 +03:00
StNicolay b456896894 Changed get.rs and get_menu.rs to use MessageIds::alter_message func 2023-07-29 15:39:32 +03:00
StNicolay af95e16622 added inline attributes 2023-07-29 15:33:10 +03:00
StNicolay 0139963459 Switched to inline buttons when getting the account name, finished decrypt and delete Callback commands 2023-07-29 15:21:40 +03:00
StNicolay 5c14a77f29 Now altering messages where possible 2023-07-29 10:19:22 +03:00
StNicolay 426a4736ce now changing state in set_master_pass by using change_state macro 2023-07-27 01:38:17 +03:00
StNicolay 22c754a256 added get endpoint, updated state_management 2023-07-26 00:52:12 +03:00
StNicolay 96c7d2e37e Added menu endpoints 2023-07-25 19:09:34 +03:00
StNicolay 64a5435dc3 Added new callback types 2023-07-25 17:44:12 +03:00
StNicolay c682fd310b Added a test that chars in passwords.rs must be ascii
It was already implied but it might be useful if they will be changed
2023-07-25 02:22:29 +03:00
StNicolay 6ebfe4e03f Replaced try_join func by tokio::try_join to be consistent with delete_all 2023-07-20 23:58:29 +03:00
StNicolay 59a11ee37b Added a 200 MB file size limit 2023-07-20 23:42:40 +03:00
StNicolay 63acd976e7 Moved document validation into a sepparate func 2023-07-20 23:28:26 +03:00
StNicolay ff6dcf6dfe Added a transaction for deleting all 2023-07-19 14:56:07 +03:00
StNicolay 255a794b0f Added simple_state_handler macro 2023-07-16 23:12:37 +03:00
StNicolay 4a1aa7203b Simplified Handler::new 2023-07-16 22:59:16 +03:00
StNicolay 010ac62a74 Added ask_name_handler 2023-07-16 22:54:01 +03:00
StNicolay 255f29bfad Started simplifying code using macros 2023-07-16 22:34:11 +03:00
StNicolay 1225adefc2 Now forming MessageIds only from &Message to reduce the amount of moving this large type 2023-07-16 17:28:40 +03:00
StNicolay e25460a3d8 simplified Handler.previous into the chat id and message id 2023-07-16 00:37:41 +03:00
StNicolay 1f016a3694 Now properly answering the callback query 2023-07-16 00:35:29 +03:00
StNicolay e311e33c6d Updated itertools and other deps, removed unnessesary versions from Cargo.toml 2023-07-15 00:12:18 +03:00
StNicolay 667f8b64fb Moved handler.func.is_none check to the top 2023-07-15 00:07:59 +03:00
StNicolay 916b20e33c Updated deps 2023-07-03 15:28:35 +03:00
StNicolay c0fcb41575 Added a prelude to reduce the amount of imports 2023-06-29 17:33:26 +03:00
StNicolay 580641bcf4 Improved master password validation 2023-06-28 00:08:51 +03:00
StNicolay bc56846843 Removed a new line 2023-06-27 22:54:14 +03:00
StNicolay b2c6a40c9d Added rand/std feature in cryptography 2023-06-27 22:53:42 +03:00
StNicolay 0a1d125b04 Improved the char counting in the check_master_pass function 2023-06-27 22:51:34 +03:00
StNicolay c3af7e9a95 Added some constants to reduce the amount of magic values 2023-06-27 22:51:11 +03:00
StNicolay bb89f6d349 Updated debug config 2023-06-27 22:50:57 +03:00
StNicolay fff91dc498 Now fully trimming the text of the message in the state handlers 2023-06-23 13:25:41 +03:00
StNicolay 24420096fd Removed excesive validity checks 2023-06-23 12:36:55 +03:00
StNicolay 497e0ba5bf Added checks if the account already exists in the database 2023-06-23 12:36:36 +03:00
StNicolay be76b09427 Updated GetUsers to provide better inforamtion about invalid accounts to a user 2023-06-23 11:45:37 +03:00