diff --git a/CHANGELOG.md b/CHANGELOG.md index 84517528..a59a261d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,11 @@ -### [v1.5.7](https://gitee.com/koogua/course-tencent-cloud/releases/v1.5.7)(2022-08-28) +### [v1.5.8](https://gitee.com/koogua/course-tencent-cloud/releases/v1.5.8)(2022-08-28) + +- 整理migrations +- 更新自动安装脚本 +- 优化登录/注册/忘记密码页 +- 修复移动端首页课程缓存刷新 + +### [v1.5.7](https://gitee.com/koogua/course-tencent-cloud/releases/v1.5.7)(2022-08-18) - 清理群组残留 - 升级腾讯云存储SDK到v2.5.6 diff --git a/app/Http/Home/Controllers/AccountController.php b/app/Http/Home/Controllers/AccountController.php index 4efc598a..320cb9c5 100644 --- a/app/Http/Home/Controllers/AccountController.php +++ b/app/Http/Home/Controllers/AccountController.php @@ -148,9 +148,9 @@ class AccountController extends Controller } /** - * @Get("/password/forget", name="home.account.forget_pwd") + * @Get("/forget", name="home.account.forget") */ - public function forgetPasswordAction() + public function forgetAction() { $service = new FullH5UrlService(); @@ -167,9 +167,8 @@ class AccountController extends Controller $captcha = $service->getSettings('captcha'); - $this->seo->prependTitle('忘记密码'); + $this->seo->prependTitle('重置密码'); - $this->view->pick('account/forget_password'); $this->view->setVar('captcha', $captcha); } diff --git a/app/Http/Home/Views/account/forget.volt b/app/Http/Home/Views/account/forget.volt new file mode 100644 index 00000000..8056110f --- /dev/null +++ b/app/Http/Home/Views/account/forget.volt @@ -0,0 +1,42 @@ +{% extends 'templates/main.volt' %} + +{% block content %} + + {% set action_url = url({'for':'home.account.reset_pwd'}) %} + + + +
+
+ +
+
+ {{ partial('account/forget_by_phone') }} +
+
+ {{ partial('account/forget_by_email') }} +
+
+
+ +
+ +{% endblock %} + +{% block include_js %} + + {{ js_include('https://ssl.captcha.qq.com/TCaptcha.js',false) }} + {{ js_include('home/js/captcha.verify.js') }} + +{% endblock %} \ No newline at end of file diff --git a/app/Http/Home/Views/account/forget_by_email.volt b/app/Http/Home/Views/account/forget_by_email.volt new file mode 100644 index 00000000..2a61dff4 --- /dev/null +++ b/app/Http/Home/Views/account/forget_by_email.volt @@ -0,0 +1,28 @@ +
+
+ + +
+
+ + +
+
+
+ + +
+
+ +
+
+
+
+ + + + + +
+
+
\ No newline at end of file diff --git a/app/Http/Home/Views/account/forget_by_phone.volt b/app/Http/Home/Views/account/forget_by_phone.volt new file mode 100644 index 00000000..fc766c82 --- /dev/null +++ b/app/Http/Home/Views/account/forget_by_phone.volt @@ -0,0 +1,28 @@ +
+
+ + +
+
+ + +
+
+
+ + +
+
+ +
+
+
+
+ + + + + +
+
+
\ No newline at end of file diff --git a/app/Http/Home/Views/account/forget_password.volt b/app/Http/Home/Views/account/forget_password.volt deleted file mode 100644 index 39cbef41..00000000 --- a/app/Http/Home/Views/account/forget_password.volt +++ /dev/null @@ -1,48 +0,0 @@ -{% extends 'templates/main.volt' %} - -{% block content %} - - - -
-
-
- - -
-
- - -
-
-
- - -
-
- -
-
-
-
- - - - - -
-
-
-
- -{% endblock %} - -{% block include_js %} - - {{ js_include('https://ssl.captcha.qq.com/TCaptcha.js',false) }} - {{ js_include('home/js/captcha.verify.js') }} - -{% endblock %} \ No newline at end of file diff --git a/app/Http/Home/Views/account/login.volt b/app/Http/Home/Views/account/login.volt index 34641c28..e2746070 100644 --- a/app/Http/Home/Views/account/login.volt +++ b/app/Http/Home/Views/account/login.volt @@ -4,6 +4,7 @@ @@ -25,7 +26,7 @@
{% if oauth_provider.qq.enabled == 1 %} diff --git a/app/Http/Home/Views/account/register.volt b/app/Http/Home/Views/account/register.volt index 4d86fdb1..6e72d254 100644 --- a/app/Http/Home/Views/account/register.volt +++ b/app/Http/Home/Views/account/register.volt @@ -4,54 +4,34 @@ {% set register_with_phone = local_oauth.register_with_phone == 1 %} {% set register_with_email = local_oauth.register_with_email == 1 %} + {% set action_url = url({'for':'home.account.do_register'}) %} -
-