mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-18 06:42:51 +00:00
change command to create and delete users
This commit is contained in:
parent
906a47cecb
commit
21317b68fc
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
module.exports = (grunt) ->
|
module.exports = (grunt) ->
|
||||||
|
|
||||||
grunt.registerTask 'create-admin-user', "Create a user with the given email address and make them an admin. Update in place if the user already exists. Usage: grunt create-admin-user --email joe@example.com", () ->
|
grunt.registerTask 'user:create-admin', "Create a user with the given email address and make them an admin. Update in place if the user already exists. Usage: grunt create-admin-user --email joe@example.com", () ->
|
||||||
done = @async()
|
done = @async()
|
||||||
email = grunt.option("email")
|
email = grunt.option("email")
|
||||||
if !email?
|
if !email?
|
||||||
|
@ -35,7 +35,7 @@ module.exports = (grunt) ->
|
||||||
"""
|
"""
|
||||||
done()
|
done()
|
||||||
|
|
||||||
grunt.registerTask 'delete-user', "deletes a user and all their data, Usage: grunt delete-user --email joe@example.com", () ->
|
grunt.registerTask 'user:delete', "deletes a user and all their data, Usage: grunt delete-user --email joe@example.com", () ->
|
||||||
done = @async()
|
done = @async()
|
||||||
email = grunt.option("email")
|
email = grunt.option("email")
|
||||||
if !email?
|
if !email?
|
||||||
|
|
Loading…
Reference in a new issue