-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify personal data #3869
Verify personal data #3869
Conversation
@schiessle, thanks for your PR! By analyzing the history of the files in this pull request, we identified @LukasReschke, @MorrisJobke and @jancborchardt to be potential reviewers. |
@@ -28,18 +28,20 @@ | |||
\OC::$server->getAppDataDir('identityproof'), | |||
\OC::$server->getCrypto() | |||
); | |||
|
|||
$config = \OC::$server->getConfig(); | |||
$lookupServer = $config->getSystemValue('lookup_server', ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No default value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value is that nothing is configured and than the lookup connector will fall back to the default URL.
config/config.sample.php
Outdated
/** | ||
* use a custom lookup server to publish user data | ||
*/ | ||
'lookup_server' => 'https://lookup.nextcloud.com/users', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the /users
needs to be removed here.
/** @var Signer */ | ||
private $signer; | ||
/** @var IJobList */ | ||
private $jobList; | ||
/** @var string URL point to lookup server */ | ||
private $lookupServer = 'https://lookup.nextcloud.com/users'; | ||
private $lookupServer = 'https://lookup.nextcloud.com'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the default while fetching from the config instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to have the default defined in one place instead of spread around in multiple places. This makes it much easier to change it if necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem I see with this approach: How to set "no lookup server"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is always one configured lookup server. That's also the case for Nc11. You can disable the whole functionality in the admin settings, no need to play around with config.php variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can still have the default server stored in a const, if you need it in several places, and use it as default parameter. It's a more intuitive and especially consistent.
Signer $signer, | ||
IJobList $jobList) { | ||
IJobList $jobList, | ||
$lookupServer = '') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👎
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to: #3869 (comment)
In most cases people will just use the default value. People who use this class shouldn't have to think about it or even know the default server.
Thanks for the early review. But keep in mind that most code will probably change before it is ready to review. That's a early development branch. |
f7cc86c
to
257a8d9
Compare
257a8d9
to
046d2fe
Compare
@jancborchardt please don't forget the icons we discussed during the hackweek.... Thanks! |
046d2fe
to
f958c42
Compare
@jancborchardt Please fix the layout: |
@MorrisJobke for now the text label are just there to allow me to work on the actual functionality, I didn't put a lot of energy in getting the layout right (although I have to say that it looks better on my screen 😉 ). Still waiting for some nice icons by @jancborchardt. Bonus points for Jan if he adds them directly to this branch with the right layout 😉 |
f958c42
to
969d316
Compare
Codecov Report
@@ Coverage Diff @@
## master #3869 +/- ##
=============================================
- Coverage 54.34% 31.29% -23.06%
- Complexity 21998 22058 +60
=============================================
Files 1359 1360 +1
Lines 84340 84009 -331
Branches 1335 1335
=============================================
- Hits 45838 26290 -19548
- Misses 38502 57719 +19217
|
@jancborchardt Please have a look at this or this will not land in 12. |
48c6ae2
to
69d179f
Compare
Sorry, have been drowning in notifications – will check it out. |
@jancborchardt Thanks. As discussed we need three icons:
|
@jancborchardt I just pushed the last changes for the code. The strings "verification in progress", "verified", "click to verify" here 24e1395#diff-e999cb367e8eac4edfd688b687c55730L114 need to be replaced with nice looking icons. Maybe it make sense to keep the strings as a tooltip. Email has the status "verification in progress" and "verifed" only and is not clickable because email verification doesn't need any additional user interaction. The lookup server send automatically a verification mail if you set an new email address and we check in the background if the verification was completed. |
@schiessle what do you think about these icons:
|
@jancborchardt looks nice. I'm not sure if we need a error state. My plan was to just go back from "verify in progress" to "not verified" and then the user can start again. Can you commit the icons? Thanks! |
@schiessle I added the icons and also would say we simplify the wording to:
Can you make all the changes for that, let me know, and then I fix the last layout issues? |
@jancborchardt verification buttons are in and they look really nice! 😃 Can you have a look at the layout, there are still some glitches on different window sizes. Thanks! |
Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
…actual value Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Jan-Christoph Borchardt <[email protected]>
Signed-off-by: Jan-Christoph Borchardt <[email protected]>
Signed-off-by: Jan-Christoph Borchardt <[email protected]>
…n some value Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Jan-Christoph Borchardt <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
… not only after page reload Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
…eady running Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
Signed-off-by: Roeland Jago Douma <[email protected]>
Signed-off-by: Bjoern Schiessle <[email protected]>
390be0c
to
f488258
Compare
I rebased to trigger CI - restarting is not possible for the jobs before the drone mess up. :/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works:+1:
Signed-off-by: Morris Jobke <[email protected]>
unit tests run fine -> merge |
Allow users to verify their email address, twitter account and webpage for the lookup server
Fix #3127