Skip to content
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

What is the token for and how it is worked with? #14

Open
mudrd8mz opened this issue May 20, 2020 · 1 comment
Open

What is the token for and how it is worked with? #14

mudrd8mz opened this issue May 20, 2020 · 1 comment

Comments

@mudrd8mz
Copy link

 $token = md5($USER->username . $USER->firstname . $USER->lastname . $COURSE->id . $time . $USER->email .
            get_config('typorepo', 'typorepo_secret'));

This token is calculated both in the activity module and in the block. What is it for and why is it calculated like this?

@stefanscholz
Copy link
Member

We encrypt the user data that we transmit to TYPO3 in the form of the token. Originally, we had planned to use username, firstname, lastname and email because TYPO3 provides several features that would benefit from this information, for example custom notifications like reminders. Also, the way the content is built in TYPO3 usually greets learners with their firstname to make it a little more personal.

Also, current customers mostly have both TYPO3 and moodle on the same server, maintained by the same administrators.

We have decided to remove the data from the plugin database version and adjusted the TYPO3 content so that it works without any of the data. Reminders won't work like this (at least not from TYPO3), but we can always add that feature in later on — of course as an optional thing which needs to be turned on by the administrator, with appropriate information and warnings. And of course, with a fitting implementation of the privacy provider.

Hope this makes sense! (and sorry that we did not explain it like that from the beginning!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants