Commit Graph

249 Commits

Author SHA1 Message Date
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
Son Nguyen Kim c5425b0a73 black 2021-09-22 16:04:57 +02:00
Son Nguyen Kim 2e6b012eff set canonical tag for all html pages 2021-09-22 15:33:08 +02:00
Son Nguyen Kim 5ac78f2694 reformat 2021-09-08 11:29:55 +02:00
Son Nguyen Kim 3faf5c921d add admin for custom domain 2021-08-24 19:43:32 +02:00
Son Nguyen Kim aa041708e3 add ownership verification via TXT record 2021-08-17 19:05:12 +02:00
Son 66bafe7439 flake8 2021-08-15 17:42:15 +02:00
Son 4cbbf260d4 add dummy-data flask command 2021-08-15 17:32:54 +02:00
Son 1384ccc459 remove RESET_DB config 2021-08-15 17:32:33 +02:00
Son Nguyen Kim fb4cb8727c Add notify_hibp cron job 2021-07-29 09:35:00 +02:00
Son Nguyen Kim d181cd49dd Sign the whole Alias Suffix Info instead of just the suffix 2021-07-19 20:14:59 +02:00
Son Nguyen Kim 80d23b8c4f always enable flask_debugtoolbar when local run 2021-07-13 14:15:49 +02:00
Son Nguyen Kim eb8118e89e split in trunks for fill-up-email-log-alias 2021-07-13 14:15:33 +02:00
Son Nguyen Kim 8583615ba1 logging time for each request 2021-07-13 14:14:40 +02:00
Son Nguyen Kim 19c067fa17 add coupon admin 2021-07-13 08:55:04 +02:00
Son Nguyen Kim c011a4b90b remove unused import 2021-07-11 15:05:31 +02:00
Son Nguyen Kim b01fd18951 Add "flask fill-up-email-log-alias" command 2021-07-11 12:29:10 +02:00
Son Nguyen Kim f97b18e60a fill up EmailLog.alias_id when creating new EmailLog 2021-07-11 12:28:42 +02:00