src/main/java/com/feljtech/istudybucket/api/controller/AuthController.java
/**
     * Activates the user verification process using the sent token via email
     * @param verificationToken: the string token received by the user
     * @param username: username of the associated user
     * @return response entity object describing success of operation
     */
Activates the user verification process using the sent token via email
@param verificationToken: the string token received by the user
@param username: username of the associated user
@return response entity object describing success of operation
Activates the user verification process using the sent token via email @param verificationToken : the string token received by the user @param username : username of the associated user @return response entity object describing success of operation
@GetMapping(value = "/verify/{username}")
    public ResponseEntity<String> verify(@RequestParam(value = "verToken") String verificationToken, @PathVariable String username) {
        return authService.verifyAccount(verificationToken, username) ?
                new ResponseEntity<>("User verification successful", HttpStatus.ACCEPTED):
                new ResponseEntity<>("User verification unsuccessful", HttpStatus.BAD_REQUEST);
    }
@ GetMapping ( value = "/verify/{username}" ) public ResponseEntity < String > verify ( @ RequestParam ( value = "verToken" ) String verificationToken , @ PathVariable String username ) { return authService . verifyAccount ( verificationToken , username ) ? new ResponseEntity < > ( "User verification successful" , HttpStatus . ACCEPTED ) : new ResponseEntity < > ( "User verification unsuccessful" , HttpStatus . BAD_REQUEST ) ; }
Activates the user verification process using the sent token via email
 @param verificationToken: the string token received by the user
 @param username: username of the associated user
 @return response entity object describing success of operation
Activates the user verification process using the sent token via email @param verificationToken : the string token received by the user @param username : username of the associated user @return response entity object describing success of operation