aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/models/report.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/models/report.js')
-rw-r--r--www/js/models/report.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/www/js/models/report.js b/www/js/models/report.js
index c9a5f0f..44d1aef 100644
--- a/www/js/models/report.js
+++ b/www/js/models/report.js
@@ -65,7 +65,7 @@
used_map: 1
};
- if ( FMS.currentUser ) {
+ if ( FMS.currentUser && FMS.currentUser.get('password') ) {
params.name = FMS.currentUser.get('name');
params.email = FMS.currentUser.get('email');
params.phone = FMS.currentUser.get('phone');
@@ -83,14 +83,12 @@
params.submit_register = 1;
}
- /*
- FMS.currentUser = new FMS.User( {
+ FMS.currentUser.set({
name: params.name,
email: params.email,
phone: params.phone,
password: params.password
});
- */
}
var that = this;