Commit Graph

134 Commits

Author SHA1 Message Date
Johannes Zellner 98a7f44dc1 Check for last admin not required anymore
This is now prevented by the fact that an admin
cannot remove itself from the admin group. There
remains a race, just like before, where two admins could
trigger an admin group removal of the other admin in parallel
and the calls are in a state after admin flag check of
the used tokens. This can only be prevented with a db constraint
in the end.
2016-02-11 11:30:21 +01:00
Johannes Zellner 163ceef527 Remove the admin toggle route 2016-02-11 11:26:35 +01:00
Girish Ramakrishnan f413bfb3a0 Add route to set the users groups 2016-02-09 16:43:32 -08:00
girish@cloudron.io e752949752 make all tests work after group changes 2016-02-09 11:29:32 -08:00
girish@cloudron.io 199eb2b3e1 set the admin flag in user object 2016-02-09 09:25:17 -08:00
Girish Ramakrishnan 49cbea93fb fix ldap test 2016-02-09 08:52:16 -08:00
girish@cloudron.io 451c410547 make user test pass 2016-02-08 21:17:21 -08:00
girish@cloudron.io f6541720c4 pass owner flag in createUser 2016-02-08 21:05:02 -08:00
girish@cloudron.io 5e5435e869 send email for userAded 2016-02-08 20:51:20 -08:00
girish@cloudron.io 0d4f113d7d add groupIds to user object 2016-02-08 20:38:50 -08:00
girish@cloudron.io 14fab0992f make user test mostly work 2016-02-08 16:53:20 -08:00
girish@cloudron.io c34f3ee653 null invitor is ok 2016-02-08 16:36:26 -08:00
girish@cloudron.io 52ce59faaf createUser does not take admin anymore 2016-02-08 16:14:43 -08:00
girish@cloudron.io a47c6f0774 make requires alphabetical 2016-02-08 15:17:54 -08:00
Johannes Zellner dc83ba2686 Require displayName in updateUser() 2016-01-25 14:26:42 +01:00
Johannes Zellner 1f93787a63 Also send displayName for users 2016-01-25 13:36:51 +01:00
Johannes Zellner a5ba3faa49 Correctly report password errors 2016-01-20 15:41:29 +01:00
Johannes Zellner 02ba91f1bb Move password generation into separate file and ensure we generate strong passwords 2016-01-20 15:33:11 +01:00
Johannes Zellner 909dd0725a Fix copy and paste error 2016-01-20 14:49:45 +01:00
Johannes Zellner 132ebb4e74 Require strong passwords
Fixes #568
2016-01-20 14:38:41 +01:00
Johannes Zellner d61698b894 Send user_added email instead of generic user event to admins
Fixes #569
2016-01-20 12:40:56 +01:00
Johannes Zellner a4d32009ad Make it clear why this if condition is there 2016-01-20 12:39:28 +01:00
girish@cloudron.io ee705eb979 Add displayName to create user and activate routes 2016-01-19 23:34:49 -08:00
Johannes Zellner 870edab78a Set empty displayName for users 2016-01-19 12:40:50 +01:00
Johannes Zellner c5b8b0e3db Split up userAdd and sendInvite mailer calls 2016-01-18 16:11:00 +01:00
Johannes Zellner 9258585746 add user.sendInvite() with tests 2016-01-18 15:16:18 +01:00
Johannes Zellner d0d6725df5 Remove obsolete comments 2016-01-18 14:19:38 +01:00
Johannes Zellner 8ac27b9dc7 Adjust api to set a flag if invitiation should be sent on user creation 2016-01-18 13:48:10 +01:00
Johannes Zellner ecd91e8f2a Add user.getAllAdmins() 2016-01-15 16:33:13 +01:00
girish@cloudron.io efaacdb534 Add getOwner 2016-01-13 12:37:56 -08:00
Girish Ramakrishnan 9c157246b7 add type field to clients table 2015-10-15 17:35:47 -07:00
Girish Ramakrishnan c31a0f4e09 Store dates as iso strings in database
ideally, the database schema should be TIMESTAMP
2015-09-17 13:51:55 -07:00
Girish Ramakrishnan 9753d9dc7e removeUser takes a userId and not username 2015-09-08 16:38:02 -07:00
Girish Ramakrishnan df9d321ac3 app.portBindings and newManifest.tcpPorts may be null 2015-07-20 00:10:36 -07:00