Son Nguyen Kim
170082e2c1
after deleting an alias, user should stay on the same page ( #1546 )
...
* after deleting an alias, user should stay on the same page
* Fix delete alias mlec (#1547 )
* Specify how to create the certificates if they don't exist in readme (#1533 )
* Remove id= from get 🩹
* Add flash message level 🩹
* Rename transfer_mailbox back to new_mailbox in the create-mailbox part 🩹
Co-authored-by: rubencm <rubencm@gmail.com>
* Fix delete alias mlec (#1552 )
* Specify how to create the certificates if they don't exist in readme (#1533 )
* Remove id= from get 🩹
* Add flash message level 🩹
* Rename transfer_mailbox back to new_mailbox in the create-mailbox part 🩹
* Linting files to pass test 🎨
Co-authored-by: rubencm <rubencm@gmail.com>
Co-authored-by: mlec <42201667+mlec1@users.noreply.github.com>
Co-authored-by: rubencm <rubencm@gmail.com>
2023-01-25 13:16:10 +01:00
Adrià Casajús
7f9ce5641f
Feat: Added parallel limiter to prevent sqlalchemy transaction issues ( #1360 )
...
* Feat: Added parallel limiter to prevent sqlalchemy transaction issues
* Remove logs
* Moved initialization to its own file
* Throw exception
* Added test
* Add redis to gh actions
* Added v6 to the name
* Removed debug prints
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-10-27 10:07:02 +02:00
Adrià Casajús
d324e2fa79
Fix: Add csrf verification to directory updates ( #1358 )
...
* Fix: Add csrf verification to directory updates
* Update templates/dashboard/directory.html
* Added csrf for delete account form
* Fix tests
* Added CSRF check for settings page
* Added csrf to batch import
* Added CSRF to alias dashboard and alias transfer
* Added csrf to contact manager
* Added csrf to mailbox
* Added csrf for mailbox detail
* Added csrf to domain detail
* Lint
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-10-27 10:04:47 +02:00
Son
73d781cf6b
handle non number alias_id
2022-01-10 10:44:41 +01:00
Son
a021bba811
fix toggle contact should only be used by authenticated user
2021-12-06 18:39:12 +01:00
Son
4c33b63f97
better way to know whether this is the last page
2021-11-23 14:44:48 +01:00
Son
30f2734853
flake8
2021-11-19 18:32:04 +01:00
Son
b2c31ef658
fix the pagination error display
2021-11-19 18:30:36 +01:00
Son
0ae40d599a
user can block contact directly on the dashboard
2021-11-03 11:29:46 +01:00
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
48838eb176
add highlighted alias in case it's not included in the result
2021-09-07 15:22:50 +02:00
Son Nguyen Kim
ffd2ec5e81
add filter by directory on dashboard
2021-09-05 19:11:05 +02:00
Son Nguyen Kim
51578ce934
add filter by mailbox
2021-08-20 12:21:27 +02:00
Son Nguyen Kim
25f0a71ea5
add 2 weeks mention on global stats
2021-07-14 17:15:46 +02:00
Son Nguyen Kim
253be7bad4
Revert "disable global stats to help the DB"
...
This reverts commit 7ce83c36b9
.
2021-07-14 15:55:03 +02:00
Son Nguyen Kim
7ce83c36b9
disable global stats to help the DB
2021-07-13 14:52:02 +02:00
Son NK
efae1710c8
extract the app/website to a separate page
2021-04-01 14:09:16 +02:00
Son NK
92acf352b6
add limiter for random alias creation
2021-03-24 17:30:05 +01:00
Son NK
8bb324e82b
propose users to disable an alias instead of deleting it
2021-03-18 14:21:26 +01:00
Renaud Boyer
f1fb0ebe1f
linting
2020-12-06 22:04:21 +01:00
Son NK
81f9f9f41b
optimize get_stats(): use session.query instead of EmailLog.query
2020-12-02 17:30:56 +01:00
Son NK
f500a495b7
User can pin an alias
2020-11-15 18:46:43 +01:00
Son NK
b09bb42b2d
handle case where highlight_alias_id is not a number
2020-10-26 10:31:38 +01:00
Son NK
fdedc24358
black new version
2020-08-27 10:20:48 +02:00
Son NK
30fe09185f
create get_alias_infos_with_pagination_v3 - reduce nb queries used in get_alias_infos_with_pagination_v2
2020-08-21 19:51:48 +02:00
Son NK
d76aad3f17
format
2020-06-03 20:05:05 +02:00
Son NK
89dd8663ce
fix alias is None
2020-06-03 20:04:54 +02:00
Sibren Vasse
012bc52694
Fix formatting
2020-05-15 13:42:48 +02:00
Sibren Vasse
e44d92705c
Add missing last_page check (index) Move disabled class to correct element (alias_log)
2020-05-15 13:42:48 +02:00
Son NK
b95b758692
Optimize imports
2020-05-09 20:49:38 +02:00
Son NK
2f5a03dcad
make sure to add alias into global trash when deleting it
2020-05-07 22:27:27 +02:00
Son NK
84c529c867
optimize import
2020-05-07 17:49:29 +02:00
Son NK
01cc07b9fe
change the general stats: display #alias, forward, reply, block
2020-04-27 09:30:08 +02:00
Son NK
76b4611bc2
Show global stats
2020-04-26 18:49:23 +02:00
Son NK
7b2e4da87f
Support alias filter
2020-04-26 13:04:27 +02:00
Son NK
4c64393df1
Add other sorting options: A-Z, Z-A, new-old, old-new
2020-04-26 12:25:12 +02:00
Son NK
ee7e783f2a
keep sort param when redirecting back to index
2020-04-25 15:31:20 +02:00
Son NK
a2666cc4fe
remove "set-mailbox" form post
2020-04-25 15:30:19 +02:00
Son NK
1a081f87c4
Remove "set-note" post form
2020-04-25 15:28:25 +02:00
Son NK
fb9dc23529
remove form POST switch-email-forwarding
2020-04-25 15:26:07 +02:00
Son NK
bbcd4fc355
remove "trigger-email"
2020-04-25 15:21:35 +02:00
Son NK
af431c3d8b
Handle alias can be None when deleting
2020-04-25 15:16:46 +02:00
Son NK
36aee86590
support sorting: Oldest Alias to Newest,
2020-04-25 13:49:39 +02:00
Son NK
ca6350cc27
optimize import in all files
2020-04-25 13:49:39 +02:00
Son NK
95b71435f9
refactoring: use get_alias_infos_with_pagination_v2
2020-04-25 13:49:39 +02:00
Son NK
72f3e47c3c
remove show_intro_test_send_email, highlight from AliasInfo
2020-04-25 13:49:39 +02:00
Son NK
5839c637f6
use pagination for alias
2020-04-25 13:49:39 +02:00
Son NK
6c1b39bc04
remove AliasInfo.latest_activity
2020-04-25 13:49:39 +02:00
Son NK
3d10fab3a6
Make sure to show intro to user only once
2020-04-13 13:23:17 +02:00