소스 검색

去除验证码

lhm 3 년 전
부모
커밋
255b0f8df0

+ 3 - 3
kmall-admin/src/main/java/com/kmall/admin/fromcomm/controller/SysLoginController.java

@@ -84,9 +84,9 @@ public class SysLoginController {
         LOGGER.info("获取验证码:"+kaptcha);
         System.out.println(kaptcha);
         JedisUtil.del(Constants.KAPTCHA_SESSION_KEY);
-        if (!captcha.equalsIgnoreCase(kaptcha)) {
-            return R.error("验证码不正确");
-        }
+//        if (!captcha.equalsIgnoreCase(kaptcha)) {
+//            return R.error("验证码不正确");
+//        }
 
         try {
             Subject subject = ShiroUtils.getSubject();

+ 2 - 2
kmall-admin/src/main/webapp/login.html

@@ -68,7 +68,7 @@
                     <i-input class="userinput"  type="password" v-model="password" @on-enter="login" style="width: 250px;"
                              placeholder="密码"/>
                 </div>
-                <div class="form-group has-feedback" id="authcode">
+                <!--<div class="form-group has-feedback" id="authcode">
                     <div style="display: inline-block;width: 150px;height:45px;padding-left: 2px">
                         <i-input v-model="captcha" @on-enter="login"
                                  placeholder="验证码" class="authcode" />
@@ -77,7 +77,7 @@
                         <img style="height: 45px;width: 96px;border-radius: 4px;" alt="如果看不清楚,请单击图片刷新!" title="点击刷新"
                              class="pointer" :src="src" @click="refreshCode">
                     </div>
-                </div>
+                </div>-->
                 <div>
                     <i-button type="primary" @click="login" style="width: 125px;height: 45px">登录</i-button>
                     <i-button type="primary" @click="changeUserLogin" style="width: 125px;height: 45px">切换店员端登录</i-button>

+ 2 - 2
kmall-admin/src/main/webapp/userLogin.html

@@ -45,7 +45,7 @@
                     <i-input class="userinput"  type="password" v-model="password" @on-enter="login" style="width: 250px;"
                              placeholder="密码"/>
                 </div>
-                <div class="form-group has-feedback" id="authcode">
+                <!--<div class="form-group has-feedback" id="authcode">
                     <div style="display: inline-block;width: 150px;height:45px;padding-left: 2px">
                         <i-input v-model="captcha" @on-enter="login"
                                  placeholder="验证码" class="authcode" />
@@ -54,7 +54,7 @@
                         <img style="height: 45px;width: 96px;border-radius: 4px;" alt="如果看不清楚,请单击图片刷新!" title="点击刷新"
                              class="pointer" :src="src" @click="refreshCode">
                     </div>
-                </div>
+                </div>-->
                 <div>
                     <i-button type="warning" @click="login" style="width: 125px;height: 45px">登录</i-button>
                     <i-button type="warning" @click="change" style="width: 125px;height: 45px">切换管理端</i-button>