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

Change password form exposes password text in URL as plain text #436

Closed
brylie opened this issue Sep 2, 2015 · 18 comments
Closed

Change password form exposes password text in URL as plain text #436

brylie opened this issue Sep 2, 2015 · 18 comments
Assignees
Labels
Milestone

Comments

@brylie
Copy link
Contributor

brylie commented Sep 2, 2015

When submitting the Change Password form, passwords are exposed in the URL as plain text arguments. Submit the form as a POST to prevent the issue, and file a report with the upstream project (yogiben:meteor-starter).

@brylie
Copy link
Contributor Author

brylie commented Sep 4, 2015

This may be related to one or more upstream packages. I opened an issue with the Differential accounts entry package.

Edit: I was mistaken here. The form is simply written in our project as a template / AutoForm hook.

@bajiat
Copy link
Contributor

bajiat commented Sep 25, 2015

To be considered: fixing by re-writing the form in our project.

@bajiat bajiat removed this from the Sprint 12 milestone Sep 25, 2015
@bajiat
Copy link
Contributor

bajiat commented Sep 28, 2015

@mauriciovieira Could you be interested on this task? Brylie offers pair-programming assistance. If you are interested, can you estimate how many hours it takes to complete the task?

@bajiat bajiat added this to the Sprint 13 milestone Sep 28, 2015
@bajiat bajiat added ready and removed planning labels Sep 28, 2015
@mauriciovieira
Copy link
Contributor

@bajiat yes, I am interested. It is really hard to estimate right now, so I ask @brylie to give me a hand on this.

@brylie
Copy link
Contributor Author

brylie commented Sep 29, 2015

When would you like to schedule a pair programming session?

@mauriciovieira
Copy link
Contributor

@brylie tomorrow morning.

@brylie
Copy link
Contributor Author

brylie commented Sep 30, 2015

OK, what timezone?

@mauriciovieira
Copy link
Contributor

Sorry. I am at GMT-0300, you GMT+0300. The common period is 2PM - 6PM your time.

@brylie
Copy link
Contributor Author

brylie commented Sep 30, 2015

Alright. How about 15:30 EET?

@brylie
Copy link
Contributor Author

brylie commented Sep 30, 2015

I am in #apinf on Freenode.

@mauriciovieira
Copy link
Contributor

TODO: Check out the AutoForm sandbox for examples.Take a look at AutoForm playground, SimpleSchema, and Collection2

@brylie
Copy link
Contributor Author

brylie commented Oct 1, 2015

@mauriciovieira a third, possibly simple, option would be to write the HTML form by hand. This would be trivial, as there are only three fields and a button.

Once you have a simple HTML form, you can override the form submit event in the Meteor template/form event to validate the submission (there is already code for this which should work with some changes).

@brylie
Copy link
Contributor Author

brylie commented Oct 2, 2015

One change that needs to be made to the existing event code is to use arguments that are available to Meteor template events. Specifically, each template event can catch two optional arguments event and template respectively.

Given the following HTML:

<form id="a-form">
  <input type="text" name="inputName">
  <input type="submit" value="Submit">
</form>

You can hook into the submit event like so:

Template.body.events({
  "submit #a-form": function (event, template) {
    // Do something with event and template, etc.

The event object will now have useful method(s) including the ability to get the value of form elements:

// Inside the event function
// Get the value of the "inputName" field
var fieldNameValue = event.target.inputName.value;

Further reading

@bajiat
Copy link
Contributor

bajiat commented Oct 5, 2015

@mauriciovieira Hi, seems that you have been making good progress together with Brylie. Could you estimate the remaining hours in this task and move the task to "in progress" in the Waffle board?

mauriciovieira added a commit that referenced this issue Oct 5, 2015
* Use preventDefault() to not submit the form
* Add updatePassword schema client-side validation
* Add sAlert to master layout.
mauriciovieira added a commit that referenced this issue Oct 5, 2015
* Use preventDefault() to not submit the form
* Add updatePassword schema client-side validation
* Add sAlert to master layout.
@mauriciovieira
Copy link
Contributor

@bajiat Hi. I am not able to change the card in the Waffle board, but only using github issues interface. This started happening today.

The work is almost done. Brylie is reviewing the Pull Request #505

mauriciovieira added a commit that referenced this issue Oct 5, 2015
@mauriciovieira
Copy link
Contributor

@bajiat It is done.

@brylie
Copy link
Contributor Author

brylie commented Oct 5, 2015

PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants