New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/13 user sign up #67
Conversation
Conflicts: Gemfile.lock
button.btn type="submit" = t('label.sign_up') | ||
input#user_email name="user[email]" size="30" type="email" placeholder=t('label.email_address') | ||
input#user_password name="user[password]" size="30" type="password" placeholder=t('label.password') | ||
input#user_password_confirmation name="user[password_confirmation]" size="30" type="password" placeholder=t('label.password_confirmation') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
确认密码可以不用了,如果用户输出,登录时还可以通过「忘记密码」找回来。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,这里修改一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我又考虑了一下,是否叫username更合适一些,login有时有动词的意思。或者loginname
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
就叫 username
|
input type="password" placeholder=t('label.password') | ||
|
||
button.btn type="submit" = t('label.sign_up') | ||
form.login action="/users" accept-charset="UTF-8" id="new_user" method="post" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/users 改成 helper
如何在註冊功能沒完成的情況下寫登陸功能? |
@hardywu 还要稍等一下才能开发登陆功能,这个注册功能 @richard-ma 就差一点就可以合并进来了。 |
@nightire 是手工做的 |
@saberma 修改的差不多了,但确认密码如何从表单中拿掉,同时又不影响注册呢?是否需要修改devise框架代码?目前没思路。 |
@richard-ma 注册的先到这里。至于把确认密码去掉的可以作为新的 issue,你提一个吧。 |
feature #13
TODO