Skip to content
Snippets Groups Projects
Commit f6f214bd authored by Joni Laukka's avatar Joni Laukka
Browse files

Removed password from the form

parent 865388a7
No related branches found
No related tags found
3 merge requests!21Development,!15Get game creation to user-marker-database-interactions,!13Resolve "Pelinluontilomake"
...@@ -82,7 +82,7 @@ export class NewGameForm extends React.Component{ ...@@ -82,7 +82,7 @@ export class NewGameForm extends React.Component{
let token = sessionStorage.getItem('token'); let token = sessionStorage.getItem('token');
// Send Game info to the server // Send Game info to the server
fetch('http://172.20.2.143:5000/game/new', { fetch('http://localhost:5000/game/new', {
method: 'POST', method: 'POST',
headers: { headers: {
Authorization: 'Bearer ' + token, Authorization: 'Bearer ' + token,
...@@ -167,16 +167,6 @@ export class NewGameForm extends React.Component{ ...@@ -167,16 +167,6 @@ export class NewGameForm extends React.Component{
required required
/> />
<br /> <br />
<br />
<input
className=''
placeholder='game password'
type='password'
name='password'
onChange={this.handleChange}
required
/>
<br />
<label>Map things</label> <label>Map things</label>
<br /> <br />
<Map className='' center={[this.state.mapCenter.lat, this.state.mapCenter.lng]} zoom={this.state.zoom} style={{height: '400px', width: '400px'} } onmoveend={this.handleMapDrag} onzoomend={this.handleMapScroll}> <Map className='' center={[this.state.mapCenter.lat, this.state.mapCenter.lng]} zoom={this.state.zoom} style={{height: '400px', width: '400px'} } onmoveend={this.handleMapDrag} onzoomend={this.handleMapScroll}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment