Changeset 7215773


Ignore:
Timestamp:
02/28/23 13:36:36 (21 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
8a18cf5
Parents:
1fcb086
Message:

Update HomeController.java

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/web/HomeController.java

    r1fcb086 r7215773  
    192192            try {
    193193                userService.register(first_name,last_name,username,email,number,password,role);
    194                 response.sendRedirect( "redirect:/login");
     194
    195195            }catch (PasswordsDoNotMatchException exception)
    196196            {
    197197//                return "redirect:/register?error=" + exception.getMessage();
    198198            }
    199         }
    200 
     199            response.sendRedirect("/login");
     200        }
     201       
    201202    }
    202203    @GetMapping("/registerWorker")
Note: See TracChangeset for help on using the changeset viewer.