Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Removed inaccessible link & added user request info #6821

Merged
merged 3 commits into from
Feb 8, 2020

Conversation

mrsaicharan1
Copy link
Member

Fixes #6818

Short description of what this resolves:

  • Removed inaccessible ticket link for security reasons

@iamareebjamal
Copy link
Member

Add a link to my tickets section

@@ -188,7 +188,8 @@
'message': (
u"Hi, this is a confirmation mail of your tickets for the event {event_name}"
u"<br/>Your order has been processed successfully."
+ u"<br/> <a href='{pdf_url}'>Click here</a> to view/download your ticket."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also remove the pdf_url attribute from the api/mail.py in send mail attendee function?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand. Could you point me to the permalink?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

                html=MAILS[TICKET_PURCHASED]['message'].format(
                    pdf_url=holder.pdf_url,
                    event_name=order.event.name,
                    frontend_url=get_settings()['frontend_url'],
                ),

pdf_url here can be removed after this change .

+ u"<br/> <a href='{pdf_url}'>Click here</a> to view/download your ticket."
+ u"<br/> Your tickets & invoice have been enclosed."
u"<br><br>You can also download your tickets in <b>My Tickets</b> section."
u"<br/>Login to manage the orders at <a href='{mytickets_url}' target='_blank'>{mytickets_url}</a> </em>"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (117 > 90 characters)

app/api/helpers/mail.py Outdated Show resolved Hide resolved
Update app/api/helpers/mail.py

Co-Authored-By: Areeb Jamal <[email protected]>
@mrsaicharan1
Copy link
Member Author

travis seems to be failing because of this.
__main__:1: DeprecationWarning: The import 'werkzeug.secure_filename' is deprecated and will be removed in Werkzeug 1.0. Use 'from werkzeug.utils import secure_filename' instead

@iamareebjamal
Copy link
Member

That's a warning, not an error

@mrsaicharan1
Copy link
Member Author

Oops. Meant by this. Failure: ImportError (cannot import name 'secure_filename' from 'werkzeug'

@codecov
Copy link

codecov bot commented Feb 8, 2020

Codecov Report

Merging #6821 into development will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #6821      +/-   ##
===============================================
+ Coverage        65.85%   65.86%   +<.01%     
===============================================
  Files              307      307              
  Lines            15382    15382              
===============================================
+ Hits             10130    10131       +1     
+ Misses            5252     5251       -1
Impacted Files Coverage Δ
app/models/event.py 81.27% <0%> (+0.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba60701...4148ea2. Read the comment docs.

@iamareebjamal iamareebjamal merged commit eb10779 into fossasia:development Feb 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ticket Email: Ticket Download not working. Wrong URL
4 participants