package com.itsol.quantrivanphong.access.register.controller;


import com.itsol.quantrivanphong.access.register.bussiness.GeneratePasswordBussiness;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(path = "/verify")
public class VerifyAccountController {

    @Autowired
    private GeneratePasswordBussiness generatePasswordBussiness;

    @GetMapping(path = "/{username}")
    public String verifyPassword(@PathVariable("username") String username){

    String mess = generatePasswordBussiness.insertPassword(username);

      return mess;
    }

}
