Discuz!小编 发表于 2026-4-3 08:56:33

再次遇上有点诡异的问题:后台“安全”中,设置了登录智能开启验证码后,无法登录后台了 New

弹出对话框要求输入用户名和密码,但输入用户名和密码点登录后,又提示:


该网页无法正常运作



如果问题依旧存在,请与网站所有者联系。


HTTP ERROR 401


其它任何地方都没改动过,就在后台安全中设置好验证码的规则后,提交确定,就自动退出了后台登录,再次打开就弹出这个验证对话框了。










1 贡献最佳答案

      看管理员的帖子: https://www.dismall.com/thread-28290-1-1.html也许能解决你的问题。      

comoocom发表于3 天前
[*]详细答案 >

凡若尘 发表于 2026-4-3 08:57:02

后台基本上是这样设置的如下图
       

                                       
                           
            
      
   

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.image-tool {--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb;}.image-tool__image {    border-radius: 3px;    overflow: hidden;    margin-bottom: 10px;}.image-tool__image-picture {      max-width: 100%;      vertical-align: bottom;      display: block;      margin-left: auto;      margin-right: auto;    }.image-tool__image-preloader {      width: 50px;      height: 50px;      border-radius: 50%;      background-size: cover;      margin: auto;      position: relative;      background-color: #cdd1e0;      background-position: center center;    }.image-tool__image-preloader::after {      content: "";      position: absolute;      z-index: 3;      width: 60px;      height: 60px;      border-radius: 50%;      border: 2px solid #cdd1e0;      border-top-color: #388ae5;      left: 50%;      top: 50%;      margin-top: -30px;      margin-left: -30px;      animation: image-preloader-spin 2s infinite linear;      box-sizing: border-box;      }.image-tool__caption::before {      position: absolute !important;      content: attr(data-placeholder);      color: #707684;      font-weight: normal;      display: none;    }.image-tool__caption:empty::before {      display: block;      }.image-tool__caption:empty:focus::before {      display: none;      }.image-tool--empty .image-tool__image {      display: none;    }.image-tool--empty .image-tool__caption, .image-tool--loading .image-tool__caption {      display: none;    }.image-tool .cdx-button {    display: flex;    align-items: center;    justify-content: center;}.image-tool .cdx-button svg {      height: auto;      margin: 0 6px 0 0;    }.image-tool--filled .cdx-button {      display: none;    }.image-tool--filled .image-tool__image-preloader {      display: none;      }.image-tool--loading .image-tool__image {      min-height: 200px;      display: flex;      border: 1px solid #e8e8eb;      background-color: #fff;    }.image-tool--loading .image-tool__image-picture {      display: none;      }.image-tool--loading .cdx-button {      display: none;    }/**   * Tunes   * ----------------   */.image-tool--withBorder .image-tool__image {      border: 1px solid #e8e8eb;    }.image-tool--withBackground .image-tool__image {      padding: 15px;      background: #cdd1e0;    }.image-tool--withBackground .image-tool__image-picture {      max-width: 60%;      margin: 0 auto;      }.image-tool--stretched .image-tool__image-picture {      width: 100%;      }.image-tool__caption {                text-align: center;                font-size: 14px;                color: #a3a3a3;        }@keyframes image-preloader-spin {0% {    transform: rotate(0deg);}100% {    transform: rotate(360deg);}}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

KarlMock59 发表于 2026-4-3 08:57:53

            
            
      
   

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.image-tool {--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb;}.image-tool__image {    border-radius: 3px;    overflow: hidden;    margin-bottom: 10px;}.image-tool__image-picture {      max-width: 100%;      vertical-align: bottom;      display: block;      margin-left: auto;      margin-right: auto;    }.image-tool__image-preloader {      width: 50px;      height: 50px;      border-radius: 50%;      background-size: cover;      margin: auto;      position: relative;      background-color: #cdd1e0;      background-position: center center;    }.image-tool__image-preloader::after {      content: "";      position: absolute;      z-index: 3;      width: 60px;      height: 60px;      border-radius: 50%;      border: 2px solid #cdd1e0;      border-top-color: #388ae5;      left: 50%;      top: 50%;      margin-top: -30px;      margin-left: -30px;      animation: image-preloader-spin 2s infinite linear;      box-sizing: border-box;      }.image-tool__caption::before {      position: absolute !important;      content: attr(data-placeholder);      color: #707684;      font-weight: normal;      display: none;    }.image-tool__caption:empty::before {      display: block;      }.image-tool__caption:empty:focus::before {      display: none;      }.image-tool--empty .image-tool__image {      display: none;    }.image-tool--empty .image-tool__caption, .image-tool--loading .image-tool__caption {      display: none;    }.image-tool .cdx-button {    display: flex;    align-items: center;    justify-content: center;}.image-tool .cdx-button svg {      height: auto;      margin: 0 6px 0 0;    }.image-tool--filled .cdx-button {      display: none;    }.image-tool--filled .image-tool__image-preloader {      display: none;      }.image-tool--loading .image-tool__image {      min-height: 200px;      display: flex;      border: 1px solid #e8e8eb;      background-color: #fff;    }.image-tool--loading .image-tool__image-picture {      display: none;      }.image-tool--loading .cdx-button {      display: none;    }/**   * Tunes   * ----------------   */.image-tool--withBorder .image-tool__image {      border: 1px solid #e8e8eb;    }.image-tool--withBackground .image-tool__image {      padding: 15px;      background: #cdd1e0;    }.image-tool--withBackground .image-tool__image-picture {      max-width: 60%;      margin: 0 auto;      }.image-tool--stretched .image-tool__image-picture {      width: 100%;      }.image-tool__caption {                text-align: center;                font-size: 14px;                color: #a3a3a3;        }@keyframes image-preloader-spin {0% {    transform: rotate(0deg);}100% {    transform: rotate(360deg);}}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

海军大都督 发表于 2026-4-3 08:58:34



看管理员的帖子: https://www.dismall.com/thread-28290-1-1.html也许能解决你的问题。

海军大都督 发表于 2026-4-3 08:59:27

到后台手动修改一下参数
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

KarlMock59 发表于 2026-4-3 09:00:27

现在是进不了后台(但前台能登录没问题)

杰克 发表于 2026-4-3 09:00:48

已解决,解决方法见https://www.dismall.com/thread-28290-1-1.html
       

                        下面是原贴内容:
       

                        先说下重构后的 X5,在 X5.0 里,首页根目录下的文件除了 index.php 其他文件其实都是“快捷方式”,真正的主文件只有 index.php 一个,不信你可以打开其他 .php 文件看下就知道了。所以你访问 admin.php 和方法 index.php?app=admin 是一样的效果,也就是说 index.php?app=admin 也可以访问后台,index.php?app=forum 也可以访问论坛,index.php?app=sample 可以访问某插件一样,大家都是平等的,这才是 X5 开始已经变成框架的原因所在。       那么也许你就会问了:“如果我删除了 admin.php 岂不是用 index.php?app=admin 还可以访问吗?”,如果看到刚才第一段话后你脑子里立刻产生这个疑问,说明你说明你脑子在线。正常来说如果你删除了 admin.php 文件,通过 index.php?app=admin 访问的时候会返回 404 页面或者弹出系统级的身份验证框,而这个验证框的用户名和密码需要通过 config_global.php 中添加(修改)以下内容单独设置,以保证管理入口的安全,相当于给管理中心设置了第二道安全门槛。
       

                      
[*]1. $_config['admincp']['validate']['method'] = 'default';
[*]2. $_config['admincp']['validate']['user'] = '用户名';
[*]3. $_config['admincp']['validate']['pass'] = '密码';
[*]4.
                           

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.cdx-list {        margin:0;        outline:none;        display:block;        counter-reset:item;        padding:6px;}.cdx-list__item {        line-height:1.45em;        display:block;        padding-top:8px;        margin-left: 2em;}.cdx-list__item-children {        display:block;}.cdx-list__item {        outline:none}.cdx-list__item-content {        word-break:break-word;        white-space:pre-wrap;        grid-area:content;        padding-left:8px}.cdx-list__item:before {        counter-increment:item;        white-space:nowrap}.cdx-list-li-container {display: flex;}.cdx-list-ordered .cdx-list__item:before {        /* content:counters(item,".",numeric) "." */}.cdx-list-ordered {        list-style-type: none;        margin-left: -15px;        counter-reset:item;        font-size: 16px;}.cdx-list-unordered {        font-size: 16px;}.cdx-list-unordered .cdx-list__item:before {        content:"•"}.cdx-list-checklist .cdx-list__item:before {        content:""}.cdx-list__settings .cdx-settings-button {        width:50%}.cdx-list__checkbox {        padding-top:calc((1.45em - 1.2em) / 2);        grid-area:checkbox;        width:1.2em;        height:1.2em;        display:flex;        cursor:pointer;        font-size: 16px;}.cdx-list__checkbox svg {        opacity:0;        height:1.2em;        width:1.2em;        left:-1px;        top:-1px;        position:absolute}@media (hover:hover) {        .cdx-list__checkbox:not(.cdx-list__checkbox--no-hover):hover .cdx-list__checkbox-check svg {        opacity:1}}.cdx-list__checkbox--checked-1 {        line-height:1.45em}@media (hover:hover) {        .cdx-list__checkbox--checked-1:not(.cdx-list__checkbox--checked-1--no-hover):hover .cdx-checklist__checkbox-check {        background:#0059AB;        border-color:#0059AB}}.cdx-list__checkbox--checked-1 .cdx-list__checkbox-check {        background:#369FFF;        border-color:#369FFF}.cdx-list__checkbox--checked-1 .cdx-list__checkbox-check svg {        opacity:1}.cdx-list__checkbox--checked-1 .cdx-list__checkbox-check svg path {        stroke:#fff}.cdx-list__checkbox--checked-1 .cdx-list__checkbox-check:before {        opacity:0;        visibility:visible;        transform:scale(2.5)}.cdx-list__checkbox-check {        cursor:pointer;        display:inline-block;        position:relative;        margin:0 auto;        width:1.2em;        height:1.2em;        box-sizing:border-box;        border-radius:5px;        border:1px solid #C9C9C9;        background:#fff}.cdx-list__checkbox-check:before {        content:"";        position:absolute;        top:0;        right:0;        bottom:0;        left:0;        border-radius:100%;        background-color:#369FFF;        visibility:hidden;        pointer-events:none;        transform:scale(1);        transition:transform .4s ease-out,opacity .4s}.cdx-list__checkbox-check--disabled {        pointer-events:none}.cdx-list-start-with-field {        background:#F8F8F8;        border:1px solid rgba(226,226,229,.2);        border-radius:6px;        padding:2px;        display:grid;        grid-template-columns:auto auto 1fr;        grid-template-rows:auto}.cdx-list-start-with-field--invalid {        background:#FFECED;        border:1px solid #E13F3F}.cdx-list-start-with-field--invalid .cdx-list-start-with-field__input {        color:#e13f3f}.cdx-list-start-with-field__input {        font-size:16px;        outline:none;        font-weight:500;        font-family:inherit;        border:0;        background:transparent;        margin:0;        padding:0;        line-height:22px;        min-width:calc(100% - 10px)}.cdx-list-start-with-field__input::placeholder {        color:#797979;        font-weight:500}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}
页: [1]
查看完整版本: 再次遇上有点诡异的问题:后台“安全”中,设置了登录智能开启验证码后,无法登录后台了 New