Skip to content

Commit eddf4bd

Browse files
committed
routes/login: Add documentation
1 parent a8a16b9 commit eddf4bd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/routes/login.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import Ember from 'ember';
22

3+
/**
4+
* This route will open a popup window directed at the `/github_login` route.
5+
* After the window has opened it will wait for the window to close and
6+
* then evaluate whether the OAuth flow was successful.
7+
*
8+
* @see `/github_authorize` route
9+
*/
310
export default Ember.Route.extend({
411
beforeModel: function(transition) {
512
try { localStorage.removeItem('github_response'); } catch (e) {}
@@ -45,4 +52,3 @@ export default Ember.Route.extend({
4552
transition.abort();
4653
}
4754
});
48-

0 commit comments

Comments
 (0)