From 91bbb58d4f81cf2ff89acad83bdefe5c2a225d83 Mon Sep 17 00:00:00 2001 From: jasder Date: Wed, 12 May 2021 17:44:45 +0800 Subject: [PATCH] FIX delete input readonly --- app/views/oauth/register.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' %>