You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
705 B
27 lines
705 B
package com.tptj.course.hg.auth.template; |
|
|
|
import com.fr.intelli.record.Focus; |
|
import com.fr.record.analyzer.EnableMetrics; |
|
import com.fr.web.utils.WebUtils; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
/** |
|
* @author 秃破天际 |
|
* @version 10.0 |
|
* Created by 秃破天际 on 2021/6/23 |
|
**/ |
|
@EnableMetrics |
|
public class Demo extends TemplateAuth{ |
|
|
|
@Override |
|
@Focus(id="com.tptj.course.hg.auth.template.v10",text = "TemplateAuth") |
|
public boolean auth(HttpServletRequest request, String templateId, String username) { |
|
String code = WebUtils.getHTTPRequestParameter(request,"code"); |
|
if("123456".equals(code)){ |
|
return true; |
|
} |
|
return false; |
|
} |
|
|
|
}
|
|
|