Adrià Casajús
25fde11a86
Refactor alias suffix ( #1194 )
...
* Extract suffix generation and validation to a module
* Updated tests
* Make custom alias use signed suffixes
* Added the signature check to the module
* Fix invalid route
* Move more suffix related stuff
* Fix tests
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-07-27 17:40:22 +02:00
Son
becde6458b
fix test
2022-04-18 11:55:14 +02:00
Son
80b0af91e5
allow user to create alias with domain that has ownership verified (and might not have MX verified)
2021-12-29 10:24:22 +01:00
Son
226ce9333c
return error if invalid alias address
2021-12-02 16:17:41 +01:00
Son
4a90c79753
make sure mailbox_ids is a list in /api/v3/alias/custom/new
2021-10-23 15:55:39 +02:00
Son
ecdce2307f
make sure input of /api/v3/alias/custom/new is a dict
2021-10-23 15:52:17 +02: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 NK
3e1f098c79
fix test
2021-06-05 17:48:41 +02:00
Son NK
d5de99afe9
Restore /alias/custom/new as currently used by safari
2021-03-31 14:41:32 +02:00
Son NK
1cac625a90
restore /v2/alias/custom/new as used by browser extension
2021-03-25 19:18:50 +01:00
Son NK
acc285abf0
remove /alias/custom/new, /v2/alias/custom/new, refactor test
2021-03-24 16:39:49 +01:00
Son NK
0c62ac4b1f
set rate limit for creating alias endpoint
2021-03-24 16:26:42 +01:00
Son NK
6435d951e1
refactor test
2021-03-24 16:11:22 +01:00
Renaud Boyer
7bcc72cc02
linting
2020-12-06 17:47:37 +01:00
Son NK
fdedc24358
black new version
2020-08-27 10:20:48 +02:00
Son NK
89f200fbc6
format
2020-06-03 21:32:37 +02:00
Son NK
9fc0748fcc
Support setting alias name in POST /api/v3/alias/custom/new
2020-06-03 21:22:29 +02:00
Son NK
48dc0dd1cc
change mailboxes to mailbox_ids
2020-06-02 20:06:32 +02:00
Son NK
d055989239
Create POST /api/v3/alias/custom/new
2020-06-02 09:33:56 +02:00
Son NK
2fbc2c171b
check domain trash when creating custom alias in api
2020-05-23 12:02:01 +02:00
Son NK
d32669f515
Add /api/v2/alias/custom/new
2020-05-02 16:22:17 +02:00
Son NK
d4a32451c1
return full alias info in POST /api/alias/custom/new
2020-03-26 19:48:36 +01:00
Son NK
4f281bdbbb
rename GenEmail -> Alias, gen_email to alias whenever possible
2020-03-17 11:51:40 +01:00
Son NK
e713efee98
reformat
2020-03-13 10:34:41 +01:00
Son NK
eb66900ba3
make test more stable
2020-03-11 13:35:56 +01:00
Son NK
aad06f73e9
Support note in POST /api/alias/custom/new
2020-03-11 12:23:43 +01:00
Son NK
3b454b9a80
fix test
2020-03-05 20:32:08 +01:00
Son NK
ad1cf3af8c
fix test
2020-01-30 13:20:32 +07:00
Son NK
bdf75951f1
support ALIAS_DOMAINS
...
- use verify_prefix_suffix() in /api/alias/custom/new
-
2020-01-22 10:24:17 +01:00
Son NK
c6db8db4a1
Improve error message
2020-01-05 21:14:40 +01:00
Son NK
66b7df588f
Fix test due to updated wording
2019-12-30 16:01:29 +01:00
Son NK
a3f547fd22
rename create_custom_alias -> create_new
2019-12-22 16:34:10 +00:00
Son NK
6ddb8ee5ab
fix test
2019-12-15 18:55:17 +02:00
Son NK
ef888288a6
add tests for api create custom/random alias
2019-12-15 18:55:17 +02:00