<feed xmlns='http://www.w3.org/2005/Atom'>
<title>leap_web.git/users/app/controllers, branch 0.2.3</title>
<subtitle>[leap_web] 
</subtitle>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/'/>
<entry>
<title>user.account shortcut to Account.new(user)</title>
<updated>2013-09-18T08:27:19+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-09-18T08:26:23+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=3ca376a4070428c862c9db48cba25c3d307955ea'/>
<id>3ca376a4070428c862c9db48cba25c3d307955ea</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #73 from azul/bugfix/3623-teardown-test-data-properly</title>
<updated>2013-09-03T17:48:13+00:00</updated>
<author>
<name>jessib</name>
<email>jessib@riseup.net</email>
</author>
<published>2013-09-03T17:48:13+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=07d0f6fe1d80cb730bd12a03a107c18d18779acc'/>
<id>07d0f6fe1d80cb730bd12a03a107c18d18779acc</id>
<content type='text'>
Bugfix/3623 teardown test data properly</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bugfix/3623 teardown test data properly</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #75 from azul/feature/token-expiry</title>
<updated>2013-09-03T17:43:34+00:00</updated>
<author>
<name>jessib</name>
<email>jessib@riseup.net</email>
</author>
<published>2013-09-03T17:43:34+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=f3e17149116f6a3aeb87f8a6d0ecf29e8e33ad93'/>
<id>f3e17149116f6a3aeb87f8a6d0ecf29e8e33ad93</id>
<content type='text'>
Token expiry</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Token expiry</pre>
</div>
</content>
</entry>
<entry>
<title>clearify usage of V1::UsersController#index for autocomplete</title>
<updated>2013-09-03T09:08:55+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-09-03T09:08:42+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=31429466c9e21f3360c9b550fa93170200f15493'/>
<id>31429466c9e21f3360c9b550fa93170200f15493</id>
<content type='text'>
[skip ci]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[skip ci]
</pre>
</div>
</content>
</entry>
<entry>
<title>remove email aliases controller - we don't use it anymore</title>
<updated>2013-09-03T08:50:00+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-09-03T08:50:00+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=78e918609a2a5cf9e0222dab81888de968e33222'/>
<id>78e918609a2a5cf9e0222dab81888de968e33222</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Cleanup sessions controller - webapp logs in through the api.</title>
<updated>2013-09-03T08:49:00+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-09-03T08:49:00+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=9a70f0e317e62993337e3e47382dcb7795d65652'/>
<id>9a70f0e317e62993337e3e47382dcb7795d65652</id>
<content type='text'>
So the #create and #update actions were not needed anymore. Also removed the tests
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So the #create and #update actions were not needed anymore. Also removed the tests
</pre>
</div>
</content>
</entry>
<entry>
<title>Account: Composition to handle User and its identities</title>
<updated>2013-09-03T06:54:25+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-08-30T09:20:04+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=859b79d0dcd53c85bb57e3db888a1af702802987'/>
<id>859b79d0dcd53c85bb57e3db888a1af702802987</id>
<content type='text'>
We have a lot of things that act upon a user record and one or more of it's identities at the same time:
* Sing up: Create a user and it's initial identity
* Rename:  Change the username and create a new identity, turn old into an alias
* Cancel Account: Remove user and all their identities.

In order to keep the User and Identity behaviour isolated but still have a this logic represented in a sinle place the Account model deals with all these things.

We could have overwritten the User#create, User#update and User#destroy methods instead. But then we would always create identities, even if we only need a user (for example in tests).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We have a lot of things that act upon a user record and one or more of it's identities at the same time:
* Sing up: Create a user and it's initial identity
* Rename:  Change the username and create a new identity, turn old into an alias
* Cancel Account: Remove user and all their identities.

In order to keep the User and Identity behaviour isolated but still have a this logic represented in a sinle place the Account model deals with all these things.

We could have overwritten the User#create, User#update and User#destroy methods instead. But then we would always create identities, even if we only need a user (for example in tests).
</pre>
</div>
</content>
</entry>
<entry>
<title>use Token#authenticate for authentication</title>
<updated>2013-09-03T06:33:30+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-08-28T07:13:57+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=2875af7cf9fe22c40a3ea7c1cc34eb563a4f3eed'/>
<id>2875af7cf9fe22c40a3ea7c1cc34eb563a4f3eed</id>
<content type='text'>
This will return the user. But we can add timestamp validations and updates here.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This will return the user. But we can add timestamp validations and updates here.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove references to email_settings controller, which has been removed. An identities controller will replace it.</title>
<updated>2013-09-02T20:28:32+00:00</updated>
<author>
<name>jessib</name>
<email>jessib@riseup.net</email>
</author>
<published>2013-09-02T20:28:32+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=57baaa65cab56d13b77fff674a57e7f3e4983f00'/>
<id>57baaa65cab56d13b77fff674a57e7f3e4983f00</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>there's no need for User#find_by_param. clean it up</title>
<updated>2013-08-30T12:54:30+00:00</updated>
<author>
<name>Azul</name>
<email>azul@leap.se</email>
</author>
<published>2013-08-28T09:53:58+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_web.git/commit/?id=7bb1a16d4eee3eb3ef36c6f5b4fc7968e3da7dd6'/>
<id>7bb1a16d4eee3eb3ef36c6f5b4fc7968e3da7dd6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
