mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
delete password of user when submitting to sentry
This commit is contained in:
parent
950e63b6d0
commit
c9042a0934
3
.gitignore
vendored
3
.gitignore
vendored
@ -6,6 +6,9 @@ lib-cov
|
|||||||
*.out
|
*.out
|
||||||
*.pid
|
*.pid
|
||||||
*.gz
|
*.gz
|
||||||
|
*.sublime-project
|
||||||
|
*.sublime-workspace
|
||||||
|
webapp-dependencies.txt
|
||||||
|
|
||||||
pids
|
pids
|
||||||
logs
|
logs
|
||||||
|
@ -22,6 +22,7 @@ class UserActions {
|
|||||||
this.actions.updateCurrentUser({});
|
this.actions.updateCurrentUser({});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
logoutCurrentUser() {
|
logoutCurrentUser() {
|
||||||
return UserFetcher.logout()
|
return UserFetcher.logout()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
@ -4,11 +4,12 @@ import React from 'react';
|
|||||||
import ReactAddons from 'react/addons';
|
import ReactAddons from 'react/addons';
|
||||||
|
|
||||||
import Button from 'react-bootstrap/lib/Button';
|
import Button from 'react-bootstrap/lib/Button';
|
||||||
|
import AlertDismissable from './alert';
|
||||||
|
|
||||||
import requests from '../../utils/requests';
|
import requests from '../../utils/requests';
|
||||||
|
|
||||||
import { getLangText } from '../../utils/lang_utils';
|
import { getLangText } from '../../utils/lang_utils';
|
||||||
import { mergeOptionsWithDuplicates } from '../../utils/general_utils';
|
import { mergeOptionsWithDuplicates } from '../../utils/general_utils';
|
||||||
import AlertDismissable from './alert';
|
|
||||||
|
|
||||||
|
|
||||||
let Form = React.createClass({
|
let Form = React.createClass({
|
||||||
@ -91,7 +92,14 @@ let Form = React.createClass({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.logGlobal(err, false, this.getFormData());
|
let formData = this.getFormData();
|
||||||
|
|
||||||
|
// sentry shouldn't post the user's password
|
||||||
|
if(formData.password) {
|
||||||
|
delete formData.password;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.logGlobal(err, false, formData);
|
||||||
this.setState({errors: [getLangText('Something went wrong, please try again later')]});
|
this.setState({errors: [getLangText('Something went wrong, please try again later')]});
|
||||||
}
|
}
|
||||||
this.setState({submitted: false});
|
this.setState({submitted: false});
|
||||||
|
@ -351,7 +351,7 @@ var ReactS3FineUploader = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onError(id, name, errorReason) {
|
onError(id, name, errorReason) {
|
||||||
Raven.captureException(errorReason);
|
Raven.captureException(errorReason, false, this.state.filesToUpload);
|
||||||
let notification = new GlobalNotificationModel(this.props.defaultErrorMessage, 'danger', 5000);
|
let notification = new GlobalNotificationModel(this.props.defaultErrorMessage, 'danger', 5000);
|
||||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user