File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,9 @@ var ConnectFormView = FormView.extend({
33
33
// get auth mechanism from parent view
34
34
obj . authentication = this . parent . authMethod ;
35
35
36
- // is SSL enabled (options are open)
37
- // obj.ssl = this.parent.sslOpen;
38
-
39
36
// fill in all default fields
40
37
obj . hostname = obj . hostname || 'localhost' ;
41
- obj . port = obj . port || 27017 ;
42
-
43
- // port number must be numeric
44
- obj . port = Number ( obj . port ) ;
45
-
46
- if ( obj . authentication !== 'NONE' ) {
47
- // default fields for auth
48
- obj . database_name = obj . database_name || 'admin' ;
49
- }
38
+ obj . port = parseInt ( obj . port || 27017 , 10 ) ;
50
39
51
40
return obj ;
52
41
} ,
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ var ConnectView = View.extend({
161
161
evt . preventDefault ( ) ;
162
162
this . toggle ( 'authOpen' ) ;
163
163
if ( this . authOpen ) {
164
- this . authMethod = this . previousAuthMethod || 'MONGODB' ;
164
+ this . authMethod = 'MONGODB' ;
165
165
} else {
166
166
this . authMethod = 'NONE' ;
167
167
}
You can’t perform that action at this time.
0 commit comments