Adrià Casajús
173ae6a221
Allow to soft-delete users ( #2034 )
...
* Allow the possibility of soft-deleting users
* Unschedule for delete after link
* Add dry run to the cron
2024-02-22 17:38:34 +01:00
Adrià Casajús
72041ee520
Show BF banner until end of promotion ( #1953 )
2023-11-30 11:48:55 +01:00
Adrià Casajús
31896ff262
Replace black and flake8 with ruff ( #1943 )
2023-11-21 16:42:18 +01:00
Adrià Casajús
8c7e9f7fb3
Fix: only send subscription notification if there is a valid subscription ( #1762 )
...
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2023-05-31 18:20:18 +02:00
Adrià Casajús
e43a2dd34d
Have subscription callback whenever a subscription changes ( #1748 )
...
* Have subscription callback whenever a subscription changes
* Fixed tests
---------
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2023-05-26 15:33:55 +02:00
Son Nguyen Kim
62ba2844f3
add admin page for InvalidMailboxDomain ( #1573 )
...
* add admin page for InvalidMailboxDomain
* show creation and modification date for InvalidMailboxDomain
2023-02-15 10:38:18 +01:00
Adrià Casajús
9378b8a17d
Fix: Return email in the get_communication_email always and search for the alias when needed ( #1497 )
...
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-12-19 09:23:53 +01:00
Adrià Casajús
73c0429cad
Fix: Set oneclick link for unsubscribe of the newsletter for tx emails ( #1465 )
...
* Feat: Add unsub oneclick to the base transactional email template
* Format
* Removed unused
* Format
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-12-13 16:59:14 +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
Son Nguyen Kim
35470613d3
add DailyMetric and Metric as admin page, remove EmailLog admin page ( #1352 )
2022-10-15 19:10:39 +02:00
Adrià Casajús
faaff7e9b9
Handle failed payments subscriptions in paddle ( #1327 )
...
* Handle failed payments subscriptions in paddle
* Added tests
* Remove unused import
* Remove unused import
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-09-30 17:51:06 +02:00
Adrià Casajús
b5aff490ef
Store session in redis if redis is enabled ( #1288 )
...
* Store sesions in redis to prevent saving old cookies
* Format
* Rename sid to session_id
* Logout session completely
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-09-21 11:11:17 +02:00
Son Nguyen Kim
69d5de8d41
fix paddle refund ( #1213 )
2022-08-02 12:43:48 +02:00
Son Nguyen Kim
abe0e0fc46
fix memory error, deleted user when sending newsletter ( #1199 )
2022-08-01 20:38:13 +02:00
Son Nguyen Kim
125538748d
command send newsletter ( #1184 )
2022-07-25 11:16:40 +02:00
Son Nguyen Kim
6322e03996
admin can manage newsletter and test sending it ( #1177 )
...
* admin can manage newsletter and test sending it
* add comments
* comment
* doc
* not userID not specified, send the newsletter to current user
* automatically match textarea height to content when editing newsletter
* increase text height and limit img size to 100% in email template
* admin can send newsletter to a specific address
2022-07-22 11:24:53 +02:00
Son Nguyen Kim
c5773af6a8
remove 15 hardcoding ( #1164 )
2022-07-19 15:09:46 +02:00
Adrià Casajús
afb2ab3758
Allow to configure mem storage from config ( #1166 )
...
* Allow to configure memory storage from config
* format
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-07-19 08:25:59 +02:00
Adrià Casajús
2837350204
Limit amount of imports ( #1161 )
...
* Limit amount of imports
* Review suggestions
* Format
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-07-16 18:17:15 +02:00
Adrià Casajús
bcd4383e05
Sanitize the highlight contact id ( #1160 )
...
* Sanitize also parameter
* Formatting
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-07-15 17:48:42 +02:00
Son Nguyen Kim
8fffe72910
fix refund callback ( #1143 )
...
fix https://sentry.io/organizations/simplelogin/issues/3370469626/?alert_rule_id=2478639&alert_timestamp=1656988438946&alert_type=email&environment=production&project=1868546&referrer=alert_email
2022-07-05 10:14:30 +02:00
Carlos Quintana
58990ec762
Hide proton integration behind cookie ( #1092 )
...
* Hide proton integration behind cookie
* Make cookie name configurable via config
2022-06-15 15:42:41 +02:00
Son Nguyen Kim
715ce33b09
handle subscription_payment_refunded event ( #1075 )
2022-06-14 09:41:49 +02:00
Son
3897d723ea
remove flask-sqlalchemy and upgrade sqlalchemy from 1.3.19 to 1.3.24
2022-05-23 14:41:06 +02:00
Carlos Quintana
3872626747
Add proton partner on dummy data
2022-05-13 08:29:20 +02:00
Carlos Quintana
710f4d0709
Start adding extension onboarding pages
2022-05-13 08:21:35 +02:00
Carlos Quintana
975eacc969
Remove config.SHA1 in favour of build_info.SHA1
2022-05-12 16:26:04 +02:00
Son
e1ca90a28e
log when subscription not exist
2022-05-10 18:53:21 +02:00
Son
998e1d7aef
handle subscription cancel from deleted user
2022-05-10 18:51:04 +02:00
Adrià Casajús
5208c549fa
Rename TransactionalComplaint to ProviderComplaint
2022-04-25 14:40:42 +02:00
Adrià Casajús
c573ef655e
Store bounces in the reply phase to prevent abuse
2022-04-21 11:23:58 +02:00
Adrià Casajús
d0860cd54d
Merge remote-tracking branch 'origin/master' into new/admin-audit-trail
...
* origin/master: (35 commits)
reduce nb of commit
show "more" only when a notification has a title. Show either title or message. Use bold font when a notification isn't read
create a notification when an alias is disabled
mark a notification as read when user arrives on the notification page
Use plausible outbound link tracking
add more log
fix discover page
fix
fix "local variable 'alias_id' referenced before assignment"
make sure to close session in monitoring
use Date instead of date for header value
lessen alias automatic disable check
refactor
return the block reason in should_disable()
add adhoc upgrade on admin
add extend subscription for 1 month to admin
disable edition on admin
comment out some admin pages
fix migration
fix duplicated stats
...
2022-03-10 18:10:13 +01:00
Adrià Casajús
98c942d84a
Added admin log view
2022-03-10 17:32:35 +01:00
Son
627b2e56d9
comment out some admin pages
2022-02-28 16:40:07 +01:00
Son
f8640bfc91
change subscription cancel email
2022-02-21 15:10:22 +01:00
Son
4d23134372
only show ZENDESK button if ZENDESK_ENABLED
2022-02-14 18:09:26 +01:00
Son
e3d06f7a1d
disable the sqlalchemy debug panels locally
2021-12-31 11:10:46 +01:00
Son
3e2c120a73
phone reservation page
...
- add twilio lib
- create phone listing, reservation page
- add twilio callback to receive messages
2021-12-02 17:03:13 +01:00
Son
5f47d172e0
move fake_data() to dedicated fiel
2021-11-28 11:51:31 +01:00
Son
5ea087e7a3
handle paddle payment_refunded request
2021-11-28 10:39:04 +01:00
Son
c0c490517a
Create /paddle_coupon to handle coupon purchase
2021-11-26 18:34:04 +01:00
Son
7c7bf15a13
install flask-debugtoolbar-sqlalchemy to have debug info about sqlalchemy
2021-11-19 18:31:42 +01:00
Son
827b90432c
do not add log for /git and /favicon.ico
2021-11-06 18:26:39 +01:00
Son
a99ac24b72
cron, init app, job runner: wrap in an app context to benefit from app setup like database cleanup, sentry integration, etc
2021-10-26 10:52:28 +02:00
Son
0fbd351bed
handle the referral url that has ?slref=code part
2021-10-25 15:02:02 +02:00
Son
ff210394a0
rename canonical_url -> CANONICAL_URL
2021-10-23 16:07:54 +02:00
Son
eb0e327402
remove "with app.app_context():"
2021-10-12 14:47:01 +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
5d7e10f776
make sure when user changes password, log user out on other browsers
2021-10-11 11:30:41 +02:00
Son Nguyen Kim
486dd831cf
fix canonical url
2021-09-23 09:25:07 +02:00