Commit a962cbb9 authored by Liang Ding's avatar Liang Ding

🎨 Fix #12492

parent a8f4bf05
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
package org.b3log.solo.processor; package org.b3log.solo.processor;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.RandomUtils;
import org.b3log.latke.logging.Level; import org.b3log.latke.logging.Level;
import org.b3log.latke.logging.Logger; import org.b3log.latke.logging.Logger;
import org.b3log.latke.servlet.HTTPRequestContext; import org.b3log.latke.servlet.HTTPRequestContext;
...@@ -49,7 +48,7 @@ import java.util.Set; ...@@ -49,7 +48,7 @@ import java.util.Set;
* Captcha processor. * Captcha processor.
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.0.0.3, Aug 30, 2018 * @version 2.0.0.4, Sep 5, 2018
* @since 0.3.1 * @since 0.3.1
*/ */
@RequestProcessor @RequestProcessor
...@@ -167,9 +166,11 @@ public class CaptchaProcessor { ...@@ -167,9 +166,11 @@ public class CaptchaProcessor {
} }
} }
if (ret.isEmpty() && 0 < fonts.length) { ret.add(Font.DIALOG);
ret.add(fonts[RandomUtils.nextInt(fonts.length)].getFontName()); ret.add(Font.DIALOG_INPUT);
} ret.add(Font.SERIF);
ret.add(Font.SANS_SERIF);
ret.add(Font.MONOSPACED);
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment