Javi Martín
ed2b217a08
Remove duplication in oauth actions
...
We were writing the same code twice, with the only difference being the
text "Sign up" in the sign_up action, and "Sign in" in the sign_in
action.
Note we're renaming the `omniauth.info_*` I18n keys so we don't need to
add new exceptions to the `ignore_unused` list, and so it's consistent
with all the other keys under the `omniauth` key.
2020-07-27 14:46:20 +02:00
Javi Martín
928312e218
Use sanitize in translations with links
...
Sometimes we're interpolating a link inside a translation, and marking
the whole translations as HTML safe.
However, some translations added by admins to the database or through
crowdin are not entirely under our control.
Although AFAIK crowdin checks for potential cross-site scripting
attacks, it's a good practice to sanitize parts of a string potentially
out of our control before marking the string as HTML safe.
2019-10-08 18:46:21 +02:00
Javi Martín
75a28fafcb
Sanitize label texts automatically
...
This way we can remove all those `html_safe` calls and we avoid
potential XSS attacks in label texts.
2019-10-08 18:46:21 +02:00
Javi Martín
55a190f44a
Remove unneeded _html suffix in I18n keys
...
This suffix does the same thing as calling `.html_safe` on them. So we
don't need to use it in texts that don't use HTML.
2019-10-08 13:20:22 +02:00
Javi Martín
8d9cb4d8e3
Simplify generating checkboxes in forms
...
Using the block syntax to generate the label with a <span> tag inside
isn't necessary after upgrading foundation_rails_helpers. Before the
upgrade, we couldn't do so because the <span> tag was escaped.
2019-10-06 19:32:04 +02:00
Javi Martín
4f5de5be3b
Add aria-describedby attribute automatically
...
We were manually adding the attribute in many places, but not
everywhere. I'm assuming adding it where we didn't have it is doing no
harm.
2019-10-06 19:32:03 +02:00
Javi Martín
f9ed186909
Add rubocop spacing rules
...
We were following these rules in most places; we just didn't define them
anywhere.
2019-09-10 21:04:56 +02:00
Javi Martín
488461b8ac
Remove consecutive blank lines
2019-09-10 20:02:15 +02:00
Julian Herrero
f6489bc604
Use double quotes in app/views
2019-03-19 12:33:07 +01:00
decabeza
cf7155613e
Changes honeypot family name to address on users sign up form
2018-12-21 11:34:12 +01:00
decabeza
af7807ce9f
Updates custom note class to foundation help-text
2017-06-27 10:29:36 +02:00
Alberto Garcia Cabeza
9e582245d3
avoids use tabindex attribute
2017-03-10 12:04:47 +01:00
Alberto Garcia Cabeza
508de35320
polishes forms styles on devise views
2017-01-09 19:10:15 +01:00
kikito
303b17c238
Adds invisible_captcha to user & organization registrations
2016-04-27 16:13:50 +02:00
kikito
dea1a28a69
purges simple_captcha
2016-04-27 16:07:47 +02:00
Alberto Garcia Cabeza
f6571662a2
Adds title on links with target blank
2016-03-14 19:32:49 +01:00
Alberto Garcia Cabeza
9dce52a69a
Adds title on input checkboxes
2016-03-14 19:32:49 +01:00
Alberto Garcia Cabeza
3752f3a53b
Adds foundation 6 🎉
2016-02-26 19:33:33 +01:00
kikito
49dec60615
adds a redeemable code to users. It can be filled up when signing up from /cuentasegura
2016-02-22 17:41:08 +01:00
kikito
9e0494a82d
Activates omniauth functionality
2016-01-26 18:15:45 +01:00
Josep Jaume Rey Peroy
cf00f12ec7
Store locale in a user's field and switch locale on mailers
2016-01-22 18:10:28 +01:00
Alberto Garcia Cabeza
2ca4557f2d
Improves accesibility
2015-10-13 16:48:37 +02:00
Juanjo Bazán
7d8f1f2629
adds title for public devise views
2015-09-28 13:59:17 +02:00
Alberto Garcia Cabeza
dd7f429104
Changes notes tag on forms
2015-09-28 13:46:54 +02:00
kikito
2d3015703d
replaces constants by class methods + private functions. Fixes broken tests
2015-09-10 13:02:21 +02:00
kikito
ada03c8474
Adds max lengths in views
2015-09-09 18:34:26 +02:00
rgarcia
17ce1f9d07
adds terms of service to users
2015-09-07 01:00:43 +02:00
Alberto Garcia Cabeza
eedd919424
Improves styles and texts for devise pages
2015-09-07 00:16:54 +02:00
Alberto Garcia Cabeza
7fefcb692e
Changes and updates texts
2015-09-02 23:43:08 +02:00
rgarcia
369fc6aef7
hides social network login
2015-09-01 12:46:02 +02:00
David Gil
158e203936
adds omniauth basic authentication process with Twitter, including an intermediate step to ask the user for her email if not provided by the OAuth provider - Twitter, for instance
2015-08-24 20:24:54 +02:00
Raimond Garcia
a9a8359bc7
Merge pull request #216 from AyuntamientoMadrid/design_improvements
...
Design improvements
2015-08-21 20:17:34 +02:00
Alberto Garcia Cabeza
ff6285d114
Improves general styles
2015-08-21 18:57:09 +02:00
Juanjo Bazán
b396a3b415
refactors user's registration
...
Simplifies process and fields:
* In: username
* Out: first_name, last_name, phone, nickname, use_nickname?
Closes #213
2015-08-21 16:41:08 +02:00
kikito
8ca546a431
merges master and fixes conflicts
2015-08-17 02:40:11 +02:00
kikito
543f718891
Adds phone_number to the regular user registration / account views
2015-08-17 01:16:08 +02:00
kikito
de73eac2d0
Moves the registrations controller to users/registrations
...
This is necessary because rails gets confused when it has a a “root”
registration_controller and another non-root one. The non-root one uses
the views from the root.
2015-08-17 01:16:07 +02:00