Girish Ramakrishnan
0bd0857189
Update many modules
...
npm WARN deprecated ejs-cli@1.2.0: This has breaking change. (in ejs package) use <= 2.0.0.
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
2017-08-13 17:57:48 -07:00
Johannes Zellner
2bdbb47286
Fix crash when a user does not yet have an username
2017-02-20 21:59:16 +01:00
Girish Ramakrishnan
0b3d1c855c
get the user before updating it
...
updating a non-existent user ends up creating a new mailbox
2017-02-15 23:19:56 -08:00
Girish Ramakrishnan
330c9054b4
add/del/update user mailbox as part of transaction
2017-02-14 10:42:32 -08:00
Girish Ramakrishnan
53d56ef3a0
console.error -> debug
2017-02-07 10:48:51 -08:00
Girish Ramakrishnan
bd0be2affc
No username implies no aliases
2017-02-02 01:22:44 -08:00
Girish Ramakrishnan
7efb6d60bc
Allow usernames and groupnames of length 1
...
Fixes #204
2017-02-02 01:02:51 -08:00
Girish Ramakrishnan
536c16929b
Remove showTutorial
2017-01-17 09:11:34 -08:00
Johannes Zellner
a0ef86f287
Remove now unused tutorial route and business logic
...
We can bring that back again if needed
2017-01-17 12:50:59 +01:00
Johannes Zellner
6697b39e79
Set password digest explicitly
...
sha1 used to be the fallback but with node 6.* the fallback is deprecated
2017-01-04 09:59:14 -08:00
Girish Ramakrishnan
6b72ee61f9
Show good error message for invalid username
2016-10-17 19:02:48 -07:00
Girish Ramakrishnan
1c22cb8443
Pass invitor object when reinviting user
2016-10-13 15:57:58 -07:00
Girish Ramakrishnan
2c357e022b
add note about ldap restrictions as well
2016-10-01 23:52:01 -07:00
Girish Ramakrishnan
ba588a1cd7
Fix group name validation to not allow hyphen
...
Fixes #70
2016-09-30 12:28:29 -07:00
Girish Ramakrishnan
441ea1af05
set email to null if we have no username
2016-09-28 14:39:47 -07:00
Johannes Zellner
58b5613c6b
Send alternateEmail with profile and user rest api
2016-09-28 11:08:11 +02:00
Girish Ramakrishnan
6a4b60436e
alternativeEmail -> alternateEmail
2016-09-27 22:25:50 -07:00
Johannes Zellner
a6547676a1
Do not allow invite email for login if cloudron mail is enabled
2016-09-27 21:48:39 +02:00
Johannes Zellner
ea87b3e876
Ensure lowercasing the email
2016-09-27 21:48:39 +02:00
Johannes Zellner
23bf358bbe
Fix case when username is not the same as the email
2016-09-27 21:48:39 +02:00
Johannes Zellner
35a964bd00
Allow users to be verified with both emails if cloudron mail is enabled
2016-09-27 21:48:39 +02:00
Johannes Zellner
64278a9ff9
Introduce alternativeEmail in case the Cloudron has email enabled
2016-09-27 21:48:39 +02:00
Girish Ramakrishnan
3fc17d38a5
Merge reserved groups and usernames into one list
...
This is because now the mailbox names are shared
2016-09-27 07:48:44 -07:00
Johannes Zellner
cfcf9f48cd
Remove dead code
2016-09-27 13:17:31 +02:00
Girish Ramakrishnan
9d9278b6f2
s/by/for
2016-09-26 14:02:23 -07:00
Girish Ramakrishnan
703e76ceb6
Check if there was an old username when deleting mailbox
2016-09-26 11:05:13 -07:00
Johannes Zellner
a7140412c4
Do not use userdb.get() directly in auth
2016-09-26 16:29:50 +02:00
Girish Ramakrishnan
a8d57bb036
test that user.del removed mailbox and aliases
2016-09-26 00:18:45 -07:00
Girish Ramakrishnan
d92e99a092
fix user alias API
2016-09-26 00:11:25 -07:00
Girish Ramakrishnan
55b80ac81f
update mailbox on username change
2016-09-25 23:51:39 -07:00
Girish Ramakrishnan
1f1f56b431
Fix mailboxdb API
2016-09-25 23:21:55 -07:00
Girish Ramakrishnan
baa2dbbf39
Add alias and list ldap routes
2016-09-25 21:34:52 -07:00
Girish Ramakrishnan
49baad349c
remove mailbox routes and move it to users
2016-09-23 15:45:40 -07:00
Girish Ramakrishnan
00ee2eea39
Remove code to push aliases
...
The mail-addon will query via LDAP
2016-09-23 15:14:07 -07:00
Girish Ramakrishnan
9a000ddaf0
make ADMIN_GROUP_ID a constant
2016-09-20 15:07:11 -07:00
Girish Ramakrishnan
1874ea7f58
use username instead of id
2016-08-31 23:41:28 -07:00
Girish Ramakrishnan
61ef3f3efb
disallow certain actions in demo mode
...
* Cannot change password
* Cannot delete user
* Cannot migrate domain or change plan
Fixes #20
2016-08-31 22:39:42 -07:00
Johannes Zellner
f60ff45cb6
Tokens are now valid for a week
2016-08-01 10:14:47 +02:00
Girish Ramakrishnan
c0f944c1bf
use safe.require instead
2016-07-12 11:37:44 -07:00
Girish Ramakrishnan
743a8650f0
Add ability to setup a ghost account for caas
2016-07-12 11:01:02 -07:00
Johannes Zellner
d91fe9223c
Dedupe the user.verify*() code
2016-06-23 11:58:10 +02:00
Johannes Zellner
4776a005a5
Remove redundant client TYPE_*s
2016-06-08 14:09:06 +02:00
Girish Ramakrishnan
dc8fd2eab3
do not use userdb directly
2016-06-07 10:01:14 -07:00
Johannes Zellner
226537de04
Move client TYPE_* to clients.js
2016-06-03 15:05:00 +02:00
Johannes Zellner
725e1debcc
Provide getByAppIdAndType() by clients.js
2016-06-03 14:47:06 +02:00
Johannes Zellner
304cfed5a9
Result of password setting is now a plain token identifier
2016-06-03 13:00:07 +02:00
Girish Ramakrishnan
036740f97b
filter out correct fields in the route code
2016-06-03 00:04:17 -07:00
Girish Ramakrishnan
f4958d936c
return groupIds in get user route
2016-06-03 00:00:11 -07:00
Girish Ramakrishnan
80ca69a128
user.update does not need the user object
2016-06-02 23:53:06 -07:00
Girish Ramakrishnan
097d23c412
move logic to model code
2016-06-02 23:29:43 -07:00