Bertocq
256eb682d0
Fix Rails/RequestReferer rubocop issue and remove from rubocop_todo list
2017-06-19 10:45:18 +02:00
Bertocq
02524b164a
Rubocop autocorrections (indentations, revers unless to if, extra spaces)
2017-06-08 12:14:35 +02:00
rgarcia
bb3c4c6399
adds consistency to ruby code style
...
Keep a blank line before and after private
Keep a blank line before and after protected
Remove extra empty line at class body end
Remove extra blank line
Add final newline
Use 2 (not 3) spaces for indentation
Use 2 (not 4) spaces for indentation
Remove space before comma
Add space after comma
Remove trailing whitespaces
Remove unnecessary spacing
Use snake_case for variable names
Do not use then for multi-line if
Remove unused block argument - i
Use the new Ruby 1.9 hash syntax
Remove unused assignment to variable
Indent when as deep as case
Align attributes
Align end with def
2016-11-15 11:18:43 +01:00
kikito
9ac6e2d60b
Uses invisible_captcha's default "foo fast" action
2016-04-28 12:47:04 +02: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
kikito
f86912c77c
Adapts to new User api
2016-04-19 13:33:16 +02:00
Juanjo Bazán
87662b3873
makes sure no blank redeemable codes are db stored
2016-02-26 17:55:34 +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
957e07489a
remove unuseful comment
2016-01-26 19:59:20 +01:00
kikito
a796dade7a
extracts methods into user.rb
2016-01-26 19:48:01 +01:00
kikito
646ca8a686
Splits omniauth_callbacks_controller#login_with method in two smaller ones
...
Uses new hash syntax in specs
2016-01-26 18:15:45 +01:00
kikito
1e8d46d83a
fixes failing email specs
...
Conflicts:
app/models/user.rb
fixes missing i18n entry
fixes badly done merge
fixes i18n issues
force build to start
2016-01-26 18:15:43 +01:00
kikito
a606c7aa8d
Renames confirmed_oauth_email to oauth_email
...
Refactors the way oauth_email is used to cover more cases (fixes pending specs)
2016-01-26 18:15:40 +01:00
kikito
d5eab64568
adds feature flags for omniauth login buttons/controls
...
Conflicts:
app/controllers/users/omniauth_callbacks_controller.rb
app/views/devise/_omniauth_form.html.erb
2016-01-26 18:15:39 +01:00
kikito
98f99954e7
Corrects the logic dealing with confirmations of users via oauth
2016-01-26 18:15:39 +01:00
kikito
7615dc066b
Uses registering_with_oauth persistent attribute to deactivate checks in certain occasions
2016-01-26 18:11:11 +01:00
kikito
f74028e3b5
Replaces the OMNIAUTH_REGEX logic with a boolean
2016-01-26 18:11:04 +01:00
kikito
d1741a2b28
Refactor first_or_create_for_auth & its usage
...
Conflicts:
app/controllers/users/omniauth_callbacks_controller.rb
Refactors first_or_initialize_for_oauth
2016-01-26 18:10:57 +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
rgarcia
cade157acd
fixes conflicts with master
2016-01-21 17:27:02 +01:00
Josep Jaume Rey Peroy
5de3d700e4
Simplify Settings API
2016-01-18 12:43:34 +01:00
Julian Herrero
7bbfcd74e2
check if username is available in registration form
2016-01-10 19:17:20 +01:00
kikito
d194bf0adc
takes the user to the same page he was in after logout
2015-12-22 11:19:06 +01:00
kikito
866e04f776
makes devise remember the last visited page before login in
2015-12-21 16:44:30 +01:00
Jakub
e4b31cfe29
Move automatic official_level assignment to the controller.
2015-12-01 23:18:23 +01:00
kikito
ac1507e85e
Fixes error when signing up new users. Fixes #624
2015-10-23 12:09:45 +02:00
rgarcia
d54abb5dfe
simplifies erase action
2015-10-20 12:57:12 +02:00
kikito
f7f0dc17dd
Fixes implementation bug when erasing account
2015-10-19 20:14:09 +02:00
kikito
9cc158540e
implements a first version of the forms. Missing: a) tests and b) check db constraints (duplicate email "", etc)
2015-10-16 20:04:16 +02:00
kikito
ac90ea3e4f
adds comments to confirmations_controller.rb
2015-10-09 16:27:37 +02:00
kikito
6da7854152
refactors sessions_controller
2015-10-09 13:30:19 +02:00
kikito
4c7dcbed39
Fixes welcome specs and adds a couple more tests
2015-10-08 16:26:41 +02:00
kikito
10de596a94
Adds missing parameter for confirmations
2015-10-08 15:19:28 +02:00
kikito
5f74528f12
Modifies devise so that unconfirmed users w/o password can set it when confirming their account
2015-10-07 20:18:54 +02:00
kikito
984ecd80f4
Fixes issue when a user does login without stored path
2015-10-06 18:48:57 +02:00
kikito
fc11a3b41b
Restores the usage of the stored path instead of forcing root path after every login
2015-10-02 18:37:15 +02:00
kikito
5069f86eb9
Skips the welcome screen when the user is verifying via email
2015-10-02 18:36:40 +02:00
kikito
249aed42c4
Makes welcome screen work using a sessions controller
2015-09-10 17:41:37 +02:00
kikito
980728279f
Adds registration "success" intermediate page
2015-09-07 17:23:59 +02:00
rgarcia
17ce1f9d07
adds terms of service to users
2015-09-07 01:00:43 +02:00
rgarcia
10127f546e
upgrade before_filter to new syntax
2015-09-03 01:40:24 +02:00
rgarcia
4897d5df4e
makes spaces consistent
2015-09-03 01:29:46 +02:00
rgarcia
171150bcf5
displays email sent flash after sign up
2015-08-29 15:48:03 +02:00
David Gil
8d0ba2fe33
cleans up unused variable
2015-08-25 15:07:36 +02:00
David Gil
59aede5b00
adds Google OAuth2 support
2015-08-25 14:15:24 +02:00
David Gil
86dccac9c6
adds support for Facebook OAuth
2015-08-24 20:24:54 +02:00
David Gil
ddcef1a0f2
remove unused and locales
2015-08-24 20:24:54 +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
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