HelfenKannJeder / come2help-web

Web-App: Project for recruiting and coordinating volunteer people.
http://come2.help/
GNU General Public License v3.0
4 stars 4 forks source link

Add authentication logic #41

Open jGleitz opened 8 years ago

jGleitz commented 8 years ago

Branch: HelfenKannJeder/come2help-web: feature/authentication-logic

TODOs

Default configuration of satellizer for login with Email and Password

$authProvider.httpInterceptor = function() { return true; },
$authProvider.withCredentials = true;
$authProvider.tokenRoot = null;
$authProvider.cordova = false;
$authProvider.baseUrl = '/';
$authProvider.loginUrl = '/auth/login';
$authProvider.signupUrl = '/auth/signup';
$authProvider.unlinkUrl = '/auth/unlink/';
$authProvider.tokenName = 'token';
$authProvider.tokenPrefix = 'satellizer';
$authProvider.authHeader = 'Authorization';
$authProvider.authToken = 'Bearer';
$authProvider.storageType = 'localStorage';
BassT commented 8 years ago

The login data is submitted in plain text. Is that a problem?

{"email":"sebastian.max.richter@gmail.com","password":"asdasd"}
jGleitz commented 8 years ago

The login data is submitted in plain text. Is that a problem?

We’re using SSL, so I guess not. I thought about it and I’m pretty sure not security gain can be achieved by hashing the password on the client side.

Plus, if that puts your mind at ease, Facebook submits passwords in plain text too ;)