Commit Graph

56 Commits

Author SHA1 Message Date
Marcin Kulik
7156130d90 Allow everyone to have private asciicasts 2015-05-10 16:40:39 +00:00
Marcin Kulik
69eb52f061 Allow supporters to change asciicast visibility 2015-04-28 11:00:23 +00:00
Marcin Kulik
2c7d549778 Require private asciicasts to be requested via secret token 2015-04-26 13:30:42 +00:00
Marcin Kulik
a30ee0d082 Allow making asciicasts "private" 2015-04-25 10:15:28 +00:00
Marcin Kulik
67d21b9692 Prevent asciicast upload for revoked tokens 2015-04-04 17:59:58 +00:00
Marcin Kulik
e05fbd574f Add ability to revoke recorder tokens 2015-04-03 17:07:38 +00:00
Marcin Kulik
47578b63b1 Refactor handling of auth token for pre 0.9.9 clients 2015-04-03 16:48:37 +00:00
Marcin Kulik
3809191a7c Remove duplicated association defs 2015-02-26 13:11:22 +00:00
Marcin Kulik
e9f4ed1f61 Accept api token as http basic auth password 2014-10-25 20:53:12 +02:00
Marcin Kulik
0cd4559f5a Log in by email without Persona 2014-10-17 20:24:22 +02:00
Marcin Kulik
bf54046836 Link to anonymous users profiles 2014-10-05 19:53:00 +02:00
Marcin Kulik
9064a37e24 Validate email format 2014-10-05 18:26:30 +02:00
Marcin Kulik
ca156564f5 Don't use "dummy" anywhere 2014-10-05 18:25:49 +02:00
Marcin Kulik
c4a4961553 Introduce ExpiringToken, a base for future authentication 2014-10-05 17:58:05 +02:00
Marcin Kulik
e06e72676e Drop "dummy" from users, replace it with temporary_username 2014-10-05 17:47:42 +02:00
Marcin Kulik
956975db38 Fix User.for_email to never return dummy users without email 2014-09-23 19:05:14 +02:00
Marcin Kulik
560e11f24e Introduce admin 2014-07-05 14:59:42 +02:00
Marcin Kulik
6bb5f39f8b Add theme changing for whole user profile and single asciicast 2014-07-01 21:33:50 +02:00
Marcin Kulik
ace357187c Well, 2 letter usernames are fine too 2014-04-10 22:22:33 +02:00
Marcin Kulik
a6bb7bf5ba Allow capital letters in usernames 2014-04-10 22:14:20 +02:00
Marcin Kulik
698767ad82 Validate username format 2014-04-10 22:03:21 +02:00
Marcin Kulik
fe5907e96f Don't use AR API outside of AR classes 2014-02-20 23:31:49 +01:00
Marcin Kulik
28e0926fd6 Split User.for_api_token into separate lookup and create methods 2014-02-20 21:11:09 +01:00
Marcin Kulik
94817be1b3 Rename nickname to username 2014-02-12 20:51:01 +01:00
Marcin Kulik
24bad5e628 Use strong_parameters instead of protected_attributes 2014-02-12 20:22:20 +01:00
Marcin Kulik
9b32e2dc37 Prevent shadowing real user profiles by dummy ones 2014-02-12 19:51:25 +01:00
Marcin Kulik
1be5538e5c Merge dummy users into real ones when assigning api tokens 2014-02-12 17:41:06 +01:00
Marcin Kulik
2ceea32cc4 Create dummy users for new api tokens 2014-02-11 17:49:22 +01:00
Marcin Kulik
13544d9d04 Rename user_token to api_token 2014-02-09 14:44:09 +01:00
Marcin Kulik
463f18c207 Refactor user page to use a presenter object 2014-02-01 01:16:28 +01:00
Marcin Kulik
86f6af3d78 Introduce AsciicastPresenter 2014-01-18 11:44:13 +01:00
Marcin Kulik
38cde2d172 Avoid AR chains outside of AR models 2013-11-20 21:33:30 +01:00
Marcin Kulik
431fd87002 Use auth token for permanent sessions 2013-10-22 19:16:18 +02:00
Marcin Kulik
3e1feff84e Auto-strip whitespace from email and nickname 2013-10-22 17:58:15 +02:00
Marcin Kulik
5bd8b05a93 Validate presence and uniqueness of both nickname and email 2013-10-22 17:52:04 +02:00
Marcin Kulik
4b5c02477b Don't override error message for user's nickname uniqueness 2013-10-20 19:08:41 +02:00
Marcin Kulik
a2b0a637fa Refactor User.for_credentials/for_email into class methods 2013-10-20 18:58:31 +02:00
Marcin Kulik
d4cbc3e504 Make Persona the only login option (with the ability to access old accounts) 2013-10-20 18:58:11 +02:00
Marcin Kulik
cdc2f01753 Find or build user from omniauth hash in the middleware 2013-08-19 17:08:13 +02:00
Marcin Kulik
20645271a1 Update models and helpers to use new Rails 4 syntax 2013-08-08 15:08:11 +02:00
Marcin Kulik
668f382a69 Fix specs 2012-07-29 19:43:03 +02:00
Marcin Kulik
87ee87f4b7 Improve error message display 2012-07-28 21:26:58 +02:00
Marcin Kulik
149e687f38 Bring back missing user->comments assoc 2012-04-09 17:04:58 +02:00
Marcin Kulik
c4b5b16e6f Merge branch 'likes'
* likes:
  Data model for "Like"

Conflicts:
	app/models/user.rb
	db/schema.rb
2012-04-09 17:03:50 +02:00
Marcin Kulik
4a6186f523 Account settings 2012-04-09 15:47:33 +02:00
Marcin Kulik
b6473b8554 user->comments association 2012-04-06 22:58:44 +02:00
Marcin Kulik
0cbd732980 Data model for "Like" 2012-04-06 14:06:40 +02:00
Marcin Kulik
71f8fed196 Fix line length 2012-03-11 09:23:29 +01:00
Micha Wrobel
fc53b71ee2 Validate nickname uniquness 2012-03-06 22:39:16 +01:00
Marcin Kulik
51dfa8474f Profile paths: ~sickill 2012-03-04 23:07:45 +01:00