mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-22 10:26:56 +08:00
finish #19
This commit is contained in:
@@ -7,7 +7,7 @@ $ ->
|
||||
|
||||
$.ajax
|
||||
method: 'post'
|
||||
url: '/user/login/'
|
||||
url: '/account/login/'
|
||||
data: data
|
||||
.done (reply) ->
|
||||
location.href = '/'
|
||||
@@ -1,7 +1,7 @@
|
||||
$ ->
|
||||
$('.signup-form').find('button').on 'click', (e) ->
|
||||
e.preventDefault()
|
||||
$('.signup-form').checkAndRequest '/user/signup/',
|
||||
$('.signup-form').checkAndRequest '/account/signup/',
|
||||
username:
|
||||
check: /^[0-9a-z_]+$/
|
||||
error: '用户名必须以数字或小写字母开头'
|
||||
Reference in New Issue
Block a user