Browse Source

增加校验验证码接口

wangwei 5 years ago
parent
commit
d099fbe4da

+ 3 - 2
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/AuthController.java

@@ -194,8 +194,9 @@ public class AuthController extends ControllerSupport {
 
 	@WithoutStackTrace(true)
 	@ApiOperation(value = "校验验证码", notes = "")
-	@PostMapping("/checkSmsCode")
-	public void checkSmsCode(@RequestParam String phone, @RequestParam String verificationCode) {
+	@PostMapping("/checkVerificationCode")
+	public void checkVerificationCode(@RequestParam String phone,
+			@RequestParam String verificationCode) {
 		smsCodeService.checkSmsCode(phone, verificationCode);
 	}
 

+ 1 - 0
examcloud-core-basic-starter/src/main/resources/security.properties

@@ -1,6 +1,7 @@
 [s][${$rmp.ctr.basic}/student][getStudentInfoBySession][GET]=true
 [s][${$rmp.ctr.basic}/student][password][PUT]=true
 [s][${$rmp.ctr.basic}/auth][/sendVerificationCode][POST]=true
+[s][${$rmp.ctr.basic}/auth][/checkVerificationCode][POST]=true
 [s][${$rmp.ctr.basic}/auth][/bindSecurityPhone][POST]=true
 [s][${$rmp.ctr.basic}/log][studentClient/{level}/{code}][POST]=true
 [s][${$rmp.ctr.basic}/student][password/direct][PUT]=true