Authentication is the process of determining whether someone or something is, in fact, who or what it is declared to be.
5
votes
1answer
52 views
Prompt for Windows Credentials via Dialog [on hold]
I have some code that requires the user (an admin) elevate to a system admin account to perform a task.
I wish to prompt the user for the admin credentials to use.
I believe returning a ...
6
votes
4answers
93 views
7
votes
3answers
413 views
Comments in PHP authentication system
Leaving aside absolutely everything about the code itself(but if you find stuff that's not ok feel free to comment on them).
Before you point somewhere else, this is about code review, comments ...
2
votes
1answer
50 views
Configure AspNet.Identity to allow for either username OR email address on login
I am wondering if there is a more efficient route to take here. Using AspNet.Identity I would like to allow the user to sign in to the same text box using either ...
1
vote
1answer
80 views
Structuring a user authentication system
I'm new to the MVC model. This is where I started: User authentication system. After questioning, reading and thinking a lot, I was able to write a small framework (don't know if 'framework' is the ...
6
votes
1answer
50 views
User persistence and login flow
I have a Java project that copies files and folders to a user's space on the cloud service using a RESTful API. The login design is getting very complicated, and I wanted advice on how to ...
6
votes
2answers
251 views
User authentication system
I'm new to OO PHP and I'm trying to create a simple properly-designed user authentication system.
What am I doing right and what not?
Is this right according to the MVC model?
...
2
votes
0answers
53 views
Knowing who is the user in every request (in every action and every view)
First: I have many model classes that are mapped from/to tables using EF. Two of them are User and UserCookie, which are stored ...
5
votes
1answer
83 views
PDO Login/Register system I've been working on
I'm relatively new to PHP and programming as whole. I'm sure my code could be better in a lot of ways, most of which I can't fully grasp at the moment. As it stands I'm trying to avoid the general ...
4
votes
2answers
81 views
Simple login system
I'm pretty new to PHP and programming general so I'm quite sure my code is an absolute mess. My goal is to write good code, that others can understand just by looking at it.
This is a simple login ...
11
votes
6answers
494 views
Efficiency with strcpy, strcat and malloc
I'm still learning C, but I'm trying to make sure I've got a decent grasp on working with "strings" and data structures.
If possible, I'd like a little input on how I'm handling this and see if
it ...
7
votes
1answer
89 views
4
votes
1answer
57 views
Admin section - Secure login and authentication
After a lot of back and forth on various sites, reading articles, watching videos etc i still can not figure out the best way to secure my admin section.
The ...
2
votes
2answers
62 views
User authentication class for basic user service
This is where I got the idea for most of the code.
I think this is pretty decent. I want this reviewed for security. Any criticism is welcome.
...
3
votes
3answers
134 views
Complex if statements in authentication method
I had asked questions about my entire class which I'll flag for closing soon. It appeared to be a little too broad for 1 post so I chopped it up and will be asking a little more specific questions ...
2
votes
1answer
108 views
AJAX request authentication to PHP script
Recently I started looking at my AJAX call security and found some code that uses tokens, request and referer in an attempt to authenticate the call and stop XSS and CSRF.
The AJAX calls are for the ...
3
votes
2answers
96 views
Acceptable way of using jQuery methods in Angular directives
Here is my plunker example of what I am doing.
jQuery is a great way to use slide transitions and seem to work well with angular as long as you are only using the methods on the element object inside ...
5
votes
1answer
97 views
Single Sign On - SAML Response generation
I am trying to implement a IDP initiated Single Sign On Solution (service similar to onelogin's) to Cloud based Service providers such as Google Apps, Salesforce etc.
The project is a Maven eclipse ...
4
votes
6answers
288 views
Login function in PHP
I've been working on a simple login script. The registration part is still to be coded, but I'm done the login part. Are there any security holes in my code? I'm using SHA-512 right now but I think ...
4
votes
2answers
131 views
PHP and MySQLi login script - is it secure / am I doing something wrong?
Below is the code for my login page. I haven't really used MySQL (especially OOP) before, so I'd like to know if I'm doing something inherently wrong. The code is working as expected, but I don't ...
7
votes
4answers
660 views
PHP OOP Login Class
This is a login class I made for my personal website.
What I don't care about, is how secure this login class is, because I know it's not. But it keeps out the rare unwanted guests because I do not ...
3
votes
1answer
49 views
Login system, PDO and me - Part 2
This is a follow up question to: Login system, PDO and me
Is this considered secure for a login script?
...
3
votes
1answer
70 views
User-logging authentication
I'm little frustrated because I don't know how well I can refactor this script. I wrote the authentication function but it's too complicated, maybe too large in one function, and seems like spaghetti ...
3
votes
1answer
83 views
Clean up / refactor this store() method
I'm new to Laravel and trying to figure out how I can reduce/refactor this store() call in my SessionController.
Basically, the ...
11
votes
2answers
228 views
Sessions and Authentication
I've a feeling I'm overdoing my Auth class, and that it could be done in a simpler and more understandable way.
Could you give me advice on this, please?
This is ...
4
votes
2answers
73 views
User Authentication Bundle
I wrote a user authentication program(s) for an MVC application. Before you ask part of the project specs are I have to store user information in company databases on servers that aren't the web ...
2
votes
1answer
39 views
Creating a New User Account
I feel like this maybe to much for one method... This method lives inside of a service class which is called by an interface. It dumps data into three different tables within a database.
...
4
votes
1answer
93 views
Oauth 2.0 handler functions for Tornado
With Tornado 3.2 they made some updates to auth module and have updated the code. Earlier I was using open id for Google login, since it will be deprecated in the future I am switching the code to ...
1
vote
1answer
59 views
Better PHP Autentication Class [closed]
Authentication and keeping information secure is my goal with writing my Authentication class while making sure it is extendable completely as possible over making it usable for anything over just ...
7
votes
1answer
119 views
Login system, PDO and me
I have run into a bit of a dilemma. Binding user input and building a prepared statement is all well and good, but what if I need the user input as a variable for a compare?
Can I just create a ...
3
votes
1answer
167 views
My first login class in PHP with PDO and bcrypt
This is the first time using a class. Please review this and tell me if it's secure and if it's the right way to do it. The code itself is working, but I have doubts in the way I used all this.
...
10
votes
2answers
149 views
Update of Classes for user registration and authentication
Old Post: Classes for user registration and authentication
This post is an update of the old post of mine. This is the code after suggestions were implemented in the review. Do you think I could make ...
6
votes
2answers
295 views
2
votes
1answer
66 views
Login System Security Part 2
Old code:
Login system security
This is an update on the code and suggestions I received from generous users on the old thread.
So same rules apply, just check it out, tell me what you think. Is ...
4
votes
1answer
130 views
Login system security
Here is a login system I am working on. I just want an opinion on it and whether I am going in the right direction or am just completely missing something.
The main thing I would like to know is: am ...
3
votes
2answers
112 views
User Login Logic
I want to see if this is as streamlined as possible. Most of the logic is accomplished through methods in the model. The controller does one of four things:
redirects new users to registration
...
1
vote
0answers
89 views
Validating a model and focus to the element if validation fails
I am using Backbone Marionette - I would like to set the user name and password if that passes the model validation method.
I am highly confused with that. Please show me a handy approach or correct ...
6
votes
1answer
145 views
PHP library for handling account creations, logins, and file uploads
I'm new to OOP and PHP. I've made an attempt at a PHP library file that handles account creations, logins, and file uploads with image resizing on the fly. It works so far. I'd like some help with ...
3
votes
2answers
133 views
5
votes
2answers
204 views
Thrice nested “OS” in Python
This Python main is what greets the user to a thrice nested super duper barebones OS. The entire rest of my code isn't bug free but this section is, and it feels dirty anyway. I'd like to know how ...
2
votes
1answer
80 views
Security of authentication check for a blog
I am currently making a very big blogging system for my Website where I want really neat code! So, I was wondering: is this method safe/does it have any problems with security? Yes, I'll be encrypting ...
6
votes
3answers
2k views
First PHP login system
This is my first attempt at a login system! I've only had roughly 2 days of experience with MySQL and PHP so far and this is what I came up with:
...
2
votes
1answer
83 views
Password protected Joomla administrator folder with Python
I am trying to make a basic auth password protected folder for Joomla. This script will simply ask for username and password to secure administrator folder in Joomla and creates .htaccess and ...
5
votes
2answers
473 views
Password strength checker
I would like to receive feedback about my code. Is there any better way to shorten the code or is it fine?
Demo
...
4
votes
2answers
105 views
Can this localStorage login script be written more efficiently?
I understand that account details should be stored using a much more secure method, but this is only a demonstration script I've made to store login credentials and remember a user wishes to remain ...
5
votes
2answers
121 views
Preventing SQL Injection in user registration routine
At the moment is my code secure for SQL injections and so forth? I still need to hash passwords and make sure fields are valid and so forth.
...
15
votes
6answers
1k views
Login Form in HTML
I am a beginner and I have made Login Form in HTML. I'm pretty sure it will look horrible to any developer, but hey, that's why I've posted it.
I'd like a general review of this. I'm especially ...
4
votes
1answer
171 views
Using static management class to control db transactions through an EF6
I have the class below to manage my specific implementation of a membership system using entity framework 6.1
Is the use of static access correct in this case? as far as I understood that EF context ...
5
votes
1answer
153 views
Python auth using requests
I am trying to implement a custom ApiClient in Python, using requests.
The way it does authentication is by:
login(username, password) -> get back a token if valid, http error code if not
set the ...
2
votes
0answers
218 views
Social user login
This is my first Laravel package. It uses hybrid Auth package to authenticate users using their social network accounts. It can retrieve information to store in a local database.
Its purpose is to ...