girish@cloudron.io
77d652fc2b
add test for config.setVersion
2016-01-25 15:12:22 -08:00
girish@cloudron.io
ac3681296e
short-circuit updates from prerelease to release version
...
Fixes #575
2016-01-25 14:48:12 -08:00
girish@cloudron.io
5254d3325f
add comment on fields on box update info object
2016-01-25 13:57:59 -08:00
Johannes Zellner
4c6f1e4b4a
Allow admins or users to operate on themselves
2016-01-25 15:29:52 +01:00
Johannes Zellner
35c926d504
Ensure we actually update the correct user, not the user holding the token
2016-01-25 14:58:02 +01:00
Johannes Zellner
dc83ba2686
Require displayName in updateUser()
2016-01-25 14:26:42 +01:00
Johannes Zellner
62615dfd0f
Make email in user change optional
2016-01-25 14:12:09 +01:00
Johannes Zellner
a6998550a7
Add displayName change unit tests
2016-01-25 14:08:35 +01:00
Johannes Zellner
3b199170be
Support changing the displayName
2016-01-25 14:08:11 +01:00
Johannes Zellner
1f93787a63
Also send displayName for users
2016-01-25 13:36:51 +01:00
Johannes Zellner
34aab65db3
Use the first part of the dn to get the common name in ldap
...
It is no must to have the first part named 'cn' but the first
part is always the id we want to verify
2016-01-25 11:31:57 +01:00
Girish Ramakrishnan
a2899c9c65
add appupdate tests
2016-01-24 00:44:46 -08:00
Girish Ramakrishnan
ff6d5e9efc
complete the box update tests
2016-01-24 00:06:32 -08:00
Girish Ramakrishnan
f48fe0a7c0
Get started with updatechecker tests
2016-01-23 22:38:46 -08:00
Girish Ramakrishnan
5f6c8ca520
fix crash
2016-01-23 13:37:21 -08:00
Girish Ramakrishnan
0eaa3a8d94
clear update info so that we use the latest settings
2016-01-23 11:08:01 -08:00
girish@cloudron.io
70f096c820
check settingsdb whether to notify for app prerelease
...
fixes #573
2016-01-23 05:56:08 -08:00
girish@cloudron.io
2840251862
check if updateInfo is null earlier
2016-01-23 05:37:22 -08:00
girish@cloudron.io
b43966df22
code without callback is hard to read
2016-01-23 05:35:57 -08:00
girish@cloudron.io
cc22285beb
Check settingsdb whether to notify for prereleases
...
part of #573
2016-01-23 05:33:16 -08:00
girish@cloudron.io
b72d48b49f
set default update config
2016-01-23 05:07:12 -08:00
girish@cloudron.io
3a6b9c23c6
settings: add update config
2016-01-23 05:06:09 -08:00
girish@cloudron.io
b2da364345
fix typo in comment
2016-01-22 17:58:38 -08:00
girish@cloudron.io
de7a6abc50
Check for out of disk space
...
Fixes #567
2016-01-22 17:46:23 -08:00
girish@cloudron.io
bcb0e61bfc
Kill child processes
...
On Unix, child processes are not killed when parent dies.
Each process is part of a process group (pgid). When pgid == pid,
it is the process group leader.
node creates child processes with the parent as the group leader
(detached = false).
You can send a signal to entire group using kill(-pgid), as in,
negative value in argument. Systemd can be made to do this by
setting the KillMode=control-group.
Unrelated: Process groups reside inside session groups. Each session
group has a controlling terminal. Only one process in the session
group has access to the terminal. Process group is basically like
a bash pipeline. A session group is the entire login session with only
one process having terminal access at a time.
Fixes #543
2016-01-21 17:44:17 -08:00
girish@cloudron.io
b9d4b8f6e8
Remove docker images by tag
...
docker pull previously used to pull down all tags.
docker pull tag1 # might pull down tag2, tag3 if they are all same!
docker rm tag1 # oops, tag2 and tag3 still hold on to the image
However, the above feature was not possible with registry v2 (some
technical stuff to do with each tag being separately signed). As a result,
this feature was removed from v1 as well - https://github.com/docker/docker/pull/10571
This means we can now do:
docker pull tag1 # nice
docker rm tag1 # image goes away if no one else is using it
references:
https://github.com/docker/docker/issues/8689
https://github.com/docker/docker/pull/8193 (added this feature to v1)
https://github.com/docker/docker/issues/8141 (the request)
https://github.com/docker/docker/pull/10571 (removes the v1 feature)
Fixes #563
2016-01-21 15:53:51 -08:00
Johannes Zellner
0f5ce651cc
Show errors if passwords do not match for reset and setup
2016-01-21 16:33:51 +01:00
Johannes Zellner
6b8d5f92de
Set meaningful page title for oauth rendered pages
2016-01-21 16:19:38 +01:00
Johannes Zellner
55e556c725
Also provide client side password validation for password setup and reset forms
2016-01-21 16:08:51 +01:00
Johannes Zellner
290132f432
Add warning in password.js to update the UI parts
2016-01-21 16:00:12 +01:00
Johannes Zellner
6e1f96a832
Set min and max length for all password fields
2016-01-21 14:26:24 +01:00
Johannes Zellner
85423cbc20
Actually send displayName instead of name in cloudron activation tests
2016-01-20 16:14:44 +01:00
Johannes Zellner
1c0d027bd3
Fix error message if displayName has wrong type
2016-01-20 16:14:21 +01:00
Johannes Zellner
5a8a023039
Fixup all the route tests with new password requirement
2016-01-20 16:06: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
bfa917e057
Add password strength unit tests
2016-01-20 14:50:06 +01:00
Johannes Zellner
909dd0725a
Fix copy and paste error
2016-01-20 14:49:45 +01:00
Johannes Zellner
74860f2d16
Fix tests for password strength change
2016-01-20 14:39:08 +01:00
Johannes Zellner
132ebb4e74
Require strong passwords
...
Fixes #568
2016-01-20 14:38:41 +01:00
Johannes Zellner
698158cd93
Change some of the mail added email text
2016-01-20 13:14:19 +01:00
Johannes Zellner
5bfc684f1b
Fix crash due to missing event
2016-01-20 13:10:16 +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
Johannes Zellner
3007875e35
Add user_added.ejs email template
...
This allows us to also send an invitation link to admins
in case the user was not invited already.
2016-01-20 12:38:07 +01:00
girish@cloudron.io
b2071c65d8
Fix typo
2016-01-20 00:05:06 -08:00
girish@cloudron.io
bfc9801699
provide displayName in ldap response when available
2016-01-19 23:47:24 -08:00
girish@cloudron.io
ee705eb979
Add displayName to create user and activate routes
2016-01-19 23:34:49 -08:00
girish@cloudron.io
67b94c7fde
give message for development mode
2016-01-19 10:20:24 -08:00
Johannes Zellner
77e5d3f4bb
Retry checking for app start state in test
2016-01-19 16:45:58 +01:00