diff --git a/app/views/oauth/register.html.erb b/app/views/oauth/register.html.erb
index 391f04661..e745d9496 100644
--- a/app/views/oauth/register.html.erb
+++ b/app/views/oauth/register.html.erb
@@ -11,7 +11,7 @@
用户名称:
- <%= text_field_tag :lastname, params[:lastname], placeholder: '登录平台后显示的用户名称', readonly: true, id: 'lastname' %>
+ <%= text_field_tag :lastname, params[:lastname], placeholder: '登录平台后显示的用户名称', maxlength: 40, id: 'lastname' %>
@@ -21,7 +21,7 @@
密码:
- <%= password_field_tag :password, '', placeholder: '输入EduCoder账号密码或新的密码', id: 'password' %>
+ <%= password_field_tag :password, '', placeholder: '输入EduCoder账号密码或新的密码',maxlength: 15, id: 'password' %>