Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feature(login) keep session living#444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
remicastaing wants to merge6 commits intoangular-fullstack:canary
base:canary
Choose a base branch
Loading
fromremicastaing:localStorage
Open

feature(login) keep session living#444

remicastaing wants to merge6 commits intoangular-fullstack:canaryfromremicastaing:localStorage

Conversation

@remicastaing
Copy link
Contributor

Session token is valid for 30 days and will be stored in browser's local storage until user logs out.

  • replace ngCookie by ngStorage
  • replace $cookie by $localStorage
  • add token duration parameter in config file
  • add role in signToken

@remicastaing
Copy link
ContributorAuthor

@DaftMonk, I understand why you said it didn't work for you. I didn't checked if my PR works for FB, G+ or Tw. I have found my mistake:auth.service.js sets a cookie...
I will come back with a new PR if this feature is yet needed.

kingcodyand others added5 commitsSeptember 10, 2014 21:26
…he admin pageChanges:- use User.query() in admin.controller instead of $http
…ing uibootstrapChanges: (only if ui-bootstrap is selected)- add `client/components/modal` folder- modal folder contains service, markup template, and stylesheet- modal service is intended to be extended, comes with `Modal.confirm.delete()` method- admin and main page will both use `Modal.confirm.delete()`Todo:- review code for cleanliness and correctness- possibly extend the modal service to include a basic alert class?- write test for `Modal` service?
Changes:- Update jshint task in `Gruntfile.js` to include `serverTest`- Add `server/.jshintrc-spec` that extends `server/.jshintrc` with spec globals- Use `"latedef": "nofunc"` instead of `"latedef": true` in `server/.jshintrc`- Add assertion for `jshint` task in generator tests for `defaultOptions`- Fix pre exsisting lint errors in `server` and `client`- Change `getEmail()` in `client/app/account/settings/settings.controller` to use `user` arg and not `$scope.user`Closes#463,#486
This reverts commitef06272.Conflicts:app/templates/client/app/account(auth)/settings/settings.controller(coffee).coffeeapp/templates/client/app/account(auth)/settings/settings.controller(js).jsapp/templates/client/app/admin(auth)/admin(html).htmlapp/templates/client/app/admin(auth)/admin(jade).jadeapp/templates/client/app/admin(auth)/admin.controller(coffee).coffeeapp/templates/client/app/admin(auth)/admin.controller(js).jsapp/templates/server/api/user(auth)/user.controller.jsapp/templates/server/api/user(auth)/user.model.jsapp/templates/server/auth(auth)/facebook(facebookAuth)/index.jsapp/templates/server/auth(auth)/facebook(facebookAuth)/passport.jsapp/templates/server/auth(auth)/google(googleAuth)/index.jsapp/templates/server/auth(auth)/google(googleAuth)/passport.jsapp/templates/server/config/_local.env.jsapp/templates/server/config/environment/index.js
@remicastaing
Copy link
ContributorAuthor

Now, tests are passing and localStorage works for local, FB, G+ and Tw.

Session token is valid for 30 days and will be stored in browser's local storage until user log out.- replace ngCookie by ngStorage- replace $cookie by $localStorage- add token duration parameter in config file- add role in signToken
@Awk34Awk34 mentioned this pull requestJul 9, 2015
@Awk34Awk34 added this to the2.3.0 milestoneJul 16, 2015
@Climax777
Copy link

When can we expect this to be merged?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

Soon

Development

Successfully merging this pull request may close these issues.

6 participants

@remicastaing@Climax777@JaKXz@Awk34@kingcody@DaftMonk

[8]ページ先頭

©2009-2025 Movatter.jp