removed register user type and ad
This commit is contained in:
		@ -26,8 +26,6 @@ public class RegisterController {
 | 
			
		||||
			@RequestParam("username") String username, @RequestParam("password") String password,
 | 
			
		||||
			@RequestParam("password2") String password2, @RequestParam("salutation") String salutation,
 | 
			
		||||
			@RequestParam("name") String name, @RequestParam("address") String address,
 | 
			
		||||
			@RequestParam("type") String type, // TODO store
 | 
			
		||||
			@RequestParam("ad") String ad, // TODO store
 | 
			
		||||
			HttpSession session) {
 | 
			
		||||
		Optional<User> user = userRepository.findByEmail(username);
 | 
			
		||||
		if (user.isPresent()) {
 | 
			
		||||
 | 
			
		||||
@ -54,23 +54,6 @@
 | 
			
		||||
            <textarea rows="5" class="full-width" type="text" name="address" id="address"
 | 
			
		||||
               placeholder="Optional: Zusatz
Optional: Unternehmen
Straße Hausnummer
Postleitzeit Ort
Land"></textarea>
 | 
			
		||||
            </div>
 | 
			
		||||
            <fieldset>
 | 
			
		||||
            <input type="radio" id="type-priv" name="type" value="priv">
 | 
			
		||||
            <label for="type-priv">Ich bin Privatkunde</label><br>
 | 
			
		||||
            <input type="radio" id="type-bus" name="type" value="bus">
 | 
			
		||||
            <label for="type-bus">Ich bin Geschäftskunde</label><br>
 | 
			
		||||
            </fieldset>
 | 
			
		||||
            <div>
 | 
			
		||||
            <h2> Werbung </h2>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div>
 | 
			
		||||
            <fieldset>
 | 
			
		||||
            <input type="radio" id="ad-y" name="ad" value="y">
 | 
			
		||||
            <label for="ad-y">Ich möchte Werbung erhalten.</label><br>
 | 
			
		||||
            <input type="radio" id="ad-n" name="ad" value="n">
 | 
			
		||||
            <label for="ad-n">Ich möchte keine Werbung erhalten.</label><br>  
 | 
			
		||||
            </fieldset>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div>
 | 
			
		||||
            <button class="full-width" type="submit" name="action" value="login">Registeren</button>
 | 
			
		||||
            <a th:href="@{/terms}">
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user