roschaefer
6a7970200f
refactor: EmailAddr.Request -> UnverifiedEmailAddr.
2019-10-02 01:21:56 +02:00
roschaefer
5848e6af18
Fix a TODO by @alina-beck
2019-10-02 00:54:01 +02:00
roschaefer
e116d52992
Use EmailAddressRequest and validate email
2019-10-02 00:54:01 +02:00
Alina Beck
707cf741de
write text for verification email
2019-10-02 00:54:01 +02:00
roschaefer
2b490e00d7
wrap email templates in standard layout to minimize duplicate code
2019-10-02 00:54:01 +02:00
roschaefer
e51124f316
Resolvers for EmailAddress implemented
2019-10-02 00:54:01 +02:00
roschaefer
8c13234af9
Handle edge case
...
It might be that people try to register email addresses that they don't own. Then if the actual owner tries to add this email address, she should not get a unique constraint violation. Instead the email will be re-used.
Is this a security issue? Because we re-use the nonce? 🤔
2019-10-02 00:54:01 +02:00
roschaefer
73d5abd724
Implement AddEmail resolver
2019-10-02 00:54:01 +02:00
roschaefer
3b6cd55c0f
Implement unauthenticated part
2019-10-02 00:54:01 +02:00
roschaefer
8a05de5b2d
Sketch backend test to change Email Address
2019-10-02 00:54:01 +02:00
mattwr18
478f6fef1c
Fix query builder/test
2019-10-01 20:57:45 +02:00
mattwr18
8aa7f376b6
Update Post query for blockedByUsers
...
- Admin/Moderators see Posts even if they are blocked
2019-10-01 17:45:09 +02:00
Robert Schäfer
6665a40c1d
Merge pull request #1751 from Human-Connection/fix-lodash-security-warning
...
fix: Github's security vulnerability warning
2019-09-30 19:20:00 +02:00
Robert Schäfer
23992cfef5
Merge pull request #1757 from Human-Connection/email-middleware-config
...
fix email middleware transport config
2019-09-30 17:50:36 +02:00
aonomike
ff91cb231f
Refactor it clauses
2019-09-30 11:33:59 +03:00
aonomike
5bcfb06511
Make clearDatabase() await
2019-09-30 11:22:12 +03:00
Vasily Belolapotkov
d33fb8f745
fix email transport config
2019-09-29 21:13:34 +03:00
roschaefer
489e9281f7
fix: Github's security vulnerability warning
...
We use an unmaintained package called `activitystrea.ms` for the
activity pub middleware. Since the activity pub middleware is dead code
at the moment I suggest that we remove that package and disable all the
code that depends on the package.
When we get back to implement the ActivityPub spec for Human Connection I
would suggest to maintain this package `activitystrea.ms`, update the
dependencies there and re-enable and **test** the code of the activity pub
middleware.
2019-09-28 14:41:47 +02:00
aonomike
c427cb2b97
refactor the naming of variables
2019-09-28 00:31:08 +03:00
aonomike
53aa87ea3c
Test Unshouting of a post
...
- Tests passing individually but test suites failing
2019-09-25 21:44:47 +03:00
Alexander Friedland
deb21f6edb
Merge branch 'master' into Allow_embedded_code_in_posts_permanent_memory
2019-09-25 19:11:05 +02:00
aonomike
4488008a2c
Test shouting other user's and current user's post
2019-09-25 01:11:18 +03:00
aonomike
33134c1d4f
Refactor shout spec
...
- Test unauthorized user path
2019-09-24 23:36:52 +03:00
ogerly
044e2bfed9
Allow embedded code in posts permanent in database
2019-09-23 20:08:45 +02:00
ogerly
4b11168687
confirm embeded iframes only frontend style
2019-09-23 16:11:20 +02:00
roschaefer
c24876c922
Add a double-check just to be sure
2019-09-23 13:51:21 +02:00
roschaefer
c669fc08eb
Fix intermittent backend specs
...
@mattwr18 I still see those false positives. This should fix it.
2019-09-23 13:47:43 +02:00
Robert Schäfer
328a41ab59
Merge pull request #1677 from Human-Connection/fix-intermittent-notifications-test
...
Fix intermittent failing test
2019-09-23 12:31:07 +02:00
ogerly
e4c7c1125d
zwischenspeichern
2019-09-23 09:11:41 +02:00
mattwr18
865c562048
Fix intermittent failing test
...
- the test was regularly failing our build
- change from toEqual to toMatchObject since there is more info coming
back, like errors, etc...
2019-09-23 08:09:35 +02:00
roschaefer
77d24b5a71
Add backend test for @mattwr18
...
This was already covered by `slugifyMiddleware.spec.js`. I do agree that
this is a better place for it. Also we're not testing GraphQL requests
here but the factories. As we're testing the existence of unique
constraints, I think it won't matter if we use factories or actual
GraphQL requests.
2019-09-23 00:09:08 +02:00
roschaefer
4fbabc879f
Add tests for User validations
2019-09-20 20:16:18 +02:00
Robert Schäfer
ede9dc0d76
Merge pull request #1620 from Human-Connection/1612_refactor-moderator-spec
...
1612 refactor moderator spec
2019-09-20 20:01:34 +02:00
roschaefer
1952d63b3c
Remove .only from moderation.spec.js
...
@aonomike @vbelolapotkov you made it!! You are the best.
Sure, the disable/enable can be improved by returning a union type. But
I leave that for another PR. 👍
2019-09-20 18:27:37 +02:00
Vasily Belolapotkov
7cca60358c
remove FollowTypeEnum from schema
2019-09-20 16:52:12 +03:00
aonomike
347f37efe4
Add enable resources test path
2019-09-20 14:23:39 +03:00
Robert Schäfer
7759d1b98a
Merge pull request #1647 from Human-Connection/Provider_list_approval_hard_cut
...
Provider list approval hard cut
2019-09-19 19:56:01 +02:00
ogerly
b75ebfd004
edit providerlist + test all provider
2019-09-19 18:46:44 +02:00
Robert Schäfer
d830fa4ae4
Merge pull request #1596 from Human-Connection/1583-follow-mutation
...
Improve follow/ufollow mutation
2019-09-19 16:54:35 +02:00
aonomike
8f2456aec4
Test unauthanticated enable
2019-09-19 17:01:42 +03:00
Wolfgang Huß
1fe4ae6619
Merge pull request #1599 from Human-Connection/configure-emails
...
Configure emails
2019-09-19 11:21:18 +02:00
Alina Beck
b25d552193
follow @Tirokk and @datenbrei suggestions
2019-09-19 09:52:47 +01:00
Alina Beck
e843edeb13
unite email templates in templateBuilder
2019-09-19 01:15:52 +01:00
Alina Beck
a7d525deab
refactor password reset
2019-09-19 00:55:06 +01:00
Alina Beck
b193e180c5
add wrong account html template
2019-09-19 00:42:42 +01:00
Alina Beck
e45948f4f0
use password reset template
2019-09-19 00:23:51 +01:00
Alina Beck
2bd7276523
improve padding
2019-09-19 00:14:13 +01:00
Alina Beck
a304dcbfdf
add reset password template
2019-09-19 00:06:57 +01:00
aonomike
bdfc2127d5
fix code review issues
2019-09-18 22:29:14 +03:00
Alina Beck
ec0cf36256
refactor email middleware
2019-09-18 18:00:34 +01:00