update translate

This commit is contained in:
unknown 2022-08-16 00:38:50 +08:00
parent 8703536eff
commit de4bdef267
2 changed files with 5 additions and 5 deletions

View File

@ -18,12 +18,12 @@ Lanraragi是一个开源的压缩包漫画阅读器运行在Mojolicious和Red
[⏬ 下载源码](https://github.com/uparrows/LANraragi_cn/releases/latest) |[📄 教程](http://yuanfangblog.xyz/technology/251.html) |
安卓客户端https://f-droid.org/packages/com.utazukin.ichaival/
安卓客户端(已提交中文支持)https://f-droid.org/packages/com.utazukin.ichaival/
IOS客户端(用AltStore安装) https://github.com/Doraemoe/DuReader/releases
AltStore:https://altstore.io/
Windows客户端 https://www.microsoft.com/zh-cn/p/lrreader/9mz6bwwvswjh
Windows客户端(已提交中文支持) https://www.microsoft.com/zh-cn/p/lrreader/9mz6bwwvswjh
## 扫码直接查看教程

View File

@ -17,14 +17,14 @@ sub check {
if ( $ppr->match($pw) ) {
$self->LRR_LOGGER->info( "尝试从 " $self->tx->remote_address "登录成功" );
$self->LRR_LOGGER->info( "登录成功,来自: " . $self->tx->remote_address );
$self->session( is_logged => 1 );
$self->session( expiration => 60 * 60 * 24 );
$self->redirect_to('index');
} else {
$self->LRR_LOGGER->warn( "使用密码 '$pw' 尝试从 " $self->tx->remote_address "登录失败");
$self->LRR_LOGGER->warn( "使用密码 '$pw' 登陆失败,来自: " . $self->tx->remote_address);
$self->render(
template => "login",
@ -64,7 +64,7 @@ sub logged_in_api {
|| $self->session('is_logged')
|| $self->LRR_CONF->enable_pass == 0;
$self->render(
json => { error => "This API is protected and requires login or an API Key." },
json => { error => "此 API 受保护,需要登录或 API 密钥." },
status => 401
);
return 0;