mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
use window.csrftoken for adding user to group subscription
This commit is contained in:
parent
a0805f97e0
commit
07fe9c36a9
1 changed files with 1 additions and 3 deletions
|
@ -39,7 +39,7 @@ require [
|
|||
type: 'POST'
|
||||
data:
|
||||
email: email
|
||||
_csrf: $("input[name=_csrf]").val()
|
||||
_csrf: csrfToken
|
||||
success: (data)->
|
||||
if data.limitReached
|
||||
alert("You have reached your maximum number of members")
|
||||
|
@ -69,8 +69,6 @@ require [
|
|||
success: ->
|
||||
$(userRow).parents("tr").fadeOut(250)
|
||||
|
||||
|
||||
|
||||
$form.on 'keypress', (e)->
|
||||
if(e.keyCode == 13)
|
||||
addUser(e)
|
||||
|
|
Loading…
Reference in a new issue