Commit graph

19 commits

Author SHA1 Message Date
jelhan
176d45b317 use a service for encryption key handling 2015-10-25 19:38:14 +01:00
jelhan
b9bef69977 user has to proof that he knows encryption key when he participates
Therefore sha256 hash of encryption key is validated against one which is stored
on server on poll creation.
This one is transfered as X-Croodle-Proof-Key-Knowledge HTTP HEADER.

Prevents an attacker of transmitting data with wrong encryption key, which
would cause decryption errors for legit users.
2015-08-23 18:56:41 +02:00
jelhan
12706d7d57 do not lookup encryption key by application container due this breaks tests in travis 2015-08-20 14:12:28 +02:00
jelhan
398453c1e4 do encryption / decryption in serializer
before it was done as computed properties of model

accessing encryption key in serializer is done via global application var.
this should be removed in long-term
2015-08-19 22:00:01 +02:00
jelhan
ab4f88dd7f Fix: handling of different timezones
There were some timezone issues especially concerning daylight saving time (DST).
We should not rely on timezone offset since this will change due to DST.
Instead determine the users timezone (using jsTimezoneDetect therefore) and
then using this via moment-timezone.

This commit changes poll model. It drops timezoneOffset and adds timezone as a new property.
It's not tested yet against polls created before without timezone property. This has to be done before merge.

Also we should consider using ember-moment template helpers instead of our own formatted-date helper.
2015-07-15 16:20:24 +02:00
jelhan
612086c73c intend by 2 spaces 2015-07-07 11:52:46 +02:00
jelhan
7dec3c47ca migration to ember-cli 2014-11-01 18:00:46 +01:00
jelhan
b9e03542e0 Merge branch 'master' into feat/ember-cli 2014-11-01 15:29:09 +01:00
jelhan
2b3e4f2fa3 improve translations 2014-11-01 15:28:57 +01:00
jelhan
7a241bd311 first steps to ember-cli 2014-10-30 21:44:22 +01:00
jelhan
2e742ea903 validate only on focusOut or submit 2014-10-26 18:19:07 +01:00
jelhan
ee98dec2e3 i18n pluralization support 2014-10-21 02:29:54 +02:00
jelhan
c370b87f88 moment i18n 2014-10-20 00:53:52 +02:00
jelhan
018fcf7f1f Merge branch 'master' into feat/i18n
Conflicts:
	app/index.html
	app/templates/create/options.hbs
	bower.json
2014-10-19 23:52:39 +02:00
jelhan
d463704eb2 bootstrap 3 for ember-easyForm
still lacks support of checkboxes: http://stackoverflow.com/questions/26444069/passing-handlebars-helper-to-another-helper-in-emberjs
2014-10-18 22:12:00 +02:00
jelhan
116f4ebda6 some small fixes 2014-09-29 13:17:54 +02:00
jelhan
469a9f1e4e language switch 2014-09-29 02:39:11 +02:00
jelhan
b9e6edc63e i18n 2014-09-29 00:48:26 +02:00
jelhan
b066b8806c Starting to move to Ember App Kit 2014-07-06 17:37:54 +02:00