Commit Graph

85 Commits

Author SHA1 Message Date
Son 372466ab06 do not use flask-sqlalchemy
- add __tablename__ for all models
- use sa and orm instead of db
- rollback all changes in tests
- remove session in @app.teardown_appcontext
2021-10-12 14:36:47 +02:00
Son Nguyen Kim 5ac78f2694 reformat 2021-09-08 11:29:55 +02:00
Son Nguyen Kim 1df5bec8df use parsleyjs instead of formbouncerjs 2021-09-06 18:51:50 +02:00
Son NK f59651045d use data-bouncer-message instead of title to display error message 2021-07-03 17:50:54 +02:00
Son NK ceacf8e3a7 support dot in alias prefix 2021-04-30 11:37:17 +02:00
Son NK c715f87526 improve SIWSL UI 2021-04-06 12:06:46 +02:00
Son NK af9597cf5a improve copy when app isn't approved 2021-04-01 18:10:39 +02:00
Son NK 085dec069b allow any redirect_uri if the app isn't approved 2021-04-01 18:04:45 +02:00
Son NK e6d8815ac5 take into account nonce in openid 2021-04-01 12:49:23 +02:00
Son NK da17f51778 add AuthorizationCode.nonce 2021-04-01 12:35:21 +02:00
Son NK 7d4e1048af show warning on authorize page for non-approved app 2021-04-01 10:50:37 +02:00
Son NK 33dd6083c7 rename available_suffixes_more_info -> get_available_suffixes 2020-12-31 14:27:04 +01:00
Son NK 5a3b79b4cf replace available_suffixes by available_suffixes_more_info 2020-12-31 14:25:44 +01:00
Renaud Boyer 7e1a474875 linting 2020-12-06 18:02:47 +01:00
Son NK 5b9dc88c67 make sure alias prefix cannot be more than 40 chars 2020-11-18 10:38:35 +01:00
Son NK a890557c7f Use check_alias_prefix() to check alias prefix 2020-11-03 10:39:08 +01:00
Son NK 2d395f99bb make sure to remove whitespace in alias 2020-09-02 09:56:16 +02:00
Son Nguyen Kim 637bc569eb
Merge pull request #260 from FabioWidmer/improvements-1
Improvements for Self Hosting & More
2020-08-24 20:16:59 +02:00
Son NK 9237f43c19 use warning log level for tampered alias 2020-08-24 19:58:21 +02:00
Fabio Widmer aa18b7ecd1
Add variables to Jinja 2020-08-18 08:47:41 +02:00
Son NK 6437ee46e0 use LOG.exception instead of LOG.error to provide stacktrace 2020-07-17 12:59:07 +02:00
Son NK 8f17cda794 use warning error for alias expiration error 2020-07-13 20:40:26 +02:00
Son NK 1a22d0cf9b fix domain can be null in self-hosting
# Conflicts:
#	app/api/views/new_custom_alias.py
#	app/dashboard/views/custom_alias.py
2020-06-15 15:58:05 +02:00
George 6f78802c0a
Rename text box requirements. 2020-05-27 21:52:45 +01:00
Son NK adce27b88b Add DomainDeletedAlias.get_by check when creating custom alias 2020-05-23 19:49:40 +02:00
Son NK 70e842789e make pages compatible with dark-theme 2020-05-11 23:22:15 +02:00
Son NK b95b758692 Optimize imports 2020-05-09 20:49:38 +02:00
Son NK 806f7016ae fix: wrongly set alias custom_domain when custom_domain is in EMAIL_ALIAS 2020-05-07 20:48:11 +02:00
Son NK 84c529c867 optimize import 2020-05-07 17:49:29 +02:00
Son NK 35b1972730 increase the expired alias creation session to 600 secs 2020-05-06 10:10:47 +02:00
Son NK d9e9a54082 add more info in "alias expire" error 2020-05-06 10:09:17 +02:00
Son NK abeb246b2c add alias suffix anti-tampering to oauth authorize 2020-05-02 12:50:19 +02:00
Son NK 8467d2b934 fix <select>: add "form-control" class on all <select> 2020-05-02 12:28:20 +02:00
Son NK 0edcc25289 refactor verify_prefix_suffix: remove user_custom_domains param 2020-05-02 12:27:54 +02:00
Son NK 0bb311464c remove custom-select as it's not displayed properly 2020-04-28 20:23:24 +02:00
Son NK ca6350cc27 optimize import in all files 2020-04-25 13:49:39 +02:00
Son NK fc4572e9ba make logo a bit smaller 2020-04-24 09:43:26 +02:00
Son NK af9178e216 Use non-beta logo 2020-04-05 18:58:22 +02:00
Son NK 2d90d35647 rename gen_email_id -> alias_id 2020-03-17 12:01:18 +01:00
Son NK 4f281bdbbb rename GenEmail -> Alias, gen_email to alias whenever possible 2020-03-17 11:51:40 +01:00
Son NK a6f4059d5d make sure to set mailbox_id when creating GenEmail 2020-03-05 17:03:07 +01:00
Son NK a467830a23 Add custom-select class to select element 2020-02-23 13:53:02 +07:00
Son NK 6cad537931 user can choose to create alias with custom domain on the authorize page 2020-01-29 23:56:44 +07:00
Son NK f3f98e4a75 Improve authorize page UI for non-authenticated user 2020-01-29 23:50:50 +07:00
Son NK 6778537083 only allow lowercase for alias 2020-01-09 20:43:03 +01:00
Son NK 91e38a744b remove GenEmail.custom column 2019-12-22 16:32:55 +00:00
Son NK 8f04f8ae0f rename can_create_new_custom_alias -> can_create_new_alias 2019-12-22 16:27:55 +00:00
Son NK 631900ab4f use random_word instead of random_string for alias suffix 2019-12-15 18:55:17 +02:00
Son NK 74fe984ae1 make sure alias pattern check is the same everywhere: Only letter, number, dash (-), underscore (_) can be used in alias prefix 2019-12-15 18:55:17 +02:00
Son NK 8e9aef1199 add website_name to suggested_emails 2019-12-15 18:55:17 +02:00