FAQ Database Discussion Community


PHP login system help needed for deletion

php,login,delete,user
Help with user deletion: Hello I am creating a user creation system for a project of mine, I am still very new to PHP, my issue is getting the user from the MySQL database and then deleting it, I will show you my code below: <?php require_once("config/db.php"); if ($login->isUserLoggedIn() ==...

django rest framework - understanding authentication and logging in

rest,authentication,login,django-rest-framework
I am a beginner to django rest framework (and to REST in general) and I have a server side which (for now) has a UserViewSet which allows to register new users and I can POST to the url from my android app just fine (I get 201 CREATED). I read...

Recording the number of logging attempts in a php login system

php,mysql,login
I am in the process of modifying an already built login system to suit my needs. I have seen that there is a special MySQL database table that is being used to record how many attempts a user has made to login. If the user has lets say attempted 5...

OpenCart text at login page doesnt get changed if I change lines in language files

login,opencart
I run an opencart shop 1.5.6.4 with vqmod installed. I installed xml from opencart in order to force a login before reaching my shop. So it's a closed shop. I customized my login page inside css to hide all menu bars and I "copied" the language selector from the shop...

Windows 8: Must enter login password twice

login,windows-8,windows-8.1
I've seen many posts about this error but in my case the password is being typed correctly but is always rejected on the first attempt, saying Your PC is offline. Please sign in with the last password. I know Windows tries to authenticate Live accounts with their servers, but it's...

Google Identity Toolkit - Google Sign in Error 400 after login

html,login,google-signin
I am currently working on an admin system to edit a websites contents and require a login system that allows me to check if a user is within a certain Google group, so I am using the Google Sign in platform (as part of the Google Identity Toolkit), however, when...

How use the hash in my custom login laravel5

php,laravel,hash,login
I am developing my own login and I have the following code public function login(Request $request ) { $email = \Request::input('email'); $password = \Request::input('password'); if (Auth::attempt(['email' => $email, 'password' => $password])) { //echo "success"; return redirect('home'); } else { return "fail"; } } And the CreateUserRequest <?php namespace App\Http\Requests; use...

how to Login with auth and authorized mvc using c#

c#,asp.net-mvc,login
How can I login in mvc? I'm a newbie in mvc. I have an advance knowledge in c#. Can anyone teach me how to login with authentication and it must be authorized?...

Android Login page

android,android-activity,login
I have written this small login activity in android. It is default first activity to run when app will get started. But when I try to launch the app on my phone, it just crashes . I don't know where is the error coming. I am running it on eclipse....

MS Access 2010 login form with access levels

vba,login,access-vba,ms-access-2010
My management wants an access database that can have a way to control which users can see specific fields on a form. For example, if a manager logs in, a form will display the performance rating field. For any other user, the performance rating field will not be visible. So...

mysql_num_rows() - php login form fails [duplicate]

php,html,mysql,sql,login
This question already has an answer here: PHP & MySQL: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given [duplicate] 2 answers mysql_fetch_array() expects parameter 1 to be resource (or mysqli_result), boolean given 29 answers Here is the log-in form script. If I run this, server echos Warning: mysql_num_rows()...

Laravel Authentification fails

authentication,laravel,login,controller
I got a problem, my Authentifications keeps getting to the else statement, while I put in the correct email and password into the login form. With the else statement I mean the last line of my SessionController else { return Redirect::to('login') } Here are my routes.php // ~ Root Route::get('/',...

php login form using if

php,html,login
I've got a PHP login form but it doesn't work. The code for the form is: <html> <body> <form action="login.php" method="post"> <table> <tr> <td> username: </td> <td> <input type="text" name="username"> </td> </tr> <tr> <td> Password: </td> <td> <input type="password" name="password"> </td> </tr> <tr> <td> <input type="submit" name="btnsubmit" value="Login"/> </td> <td>...

Cannot read from table (SQL and PHP)

php,mysql,forms,session,login
I've been trying to create a login form for my website but the form seems unable to connect to the table or retrieve info from it. I even tried obtaining some sample code online, but it is still not being able to connect. Here's the code: session_start(); $error=''; // Variable...

Why is ftp_login() authentication failing?

php,login,ftp
I am attempting to use ftp_login() but continue to get the error: Warning: ftp_login(): Login authentication failed in /path/to/file.php I am 100% positive that the username and password are correct. Login succeeds when using an FTP client like WinSCP or FileZilla. There are no symbols in either the password or...

Android AsyncTask and Login

android,jdbc,login,android-asynctask
I was writing an Android Login Page and i used a Class that extended AsyncTask. The problem is that it seems that i can't "control" the flow of the Async Task. If i insert correct username and password, if i click one time when it connects to the database it...

The logic of programming

c++,login,logic
I have a question about the logic of programming, checkout the following example: public function logout() { if (Auth::user()) { Auth::logout(); } } In the above example we first check if the user is logged in. In this function we can say that only a logged in user is able...

integrate login to my sites with OpenId or OAuth

login,zend-framework2,oauth-2.0,openid,integrated
i have a few site developed with zend framework 1 and zend framework 2,i wanna users register in main site and in other sites i want to have a login button ,if user click on login: 1- if user logged in in main site ago , user login without enter...

Trying to use MySQL fields as a restriction for data

php,mysql,login,dreamweaver,restrictions
I'll try to make this as concise as possible, but any help is greatly appreciated. My skill level is slightly above minimal in PHP/MySQL so I'm using Dreamweaver CS6 to try to get my site up and running. I need to be able to restrict data returned from the database...

How to use the same auth userprofile in multiple apps in Django 1.6

python,django,authentication,login,user
I'm using Django 1.6 auth module to login users and I have a project consisting of two apps and I want to use the same user by calling request.user.username in the view in my second app. That is, in my template login.html in the first app this works {% if...

Spring security - passing parameters to login page

spring,login,parameters
I am working on a Java/J2EE & Spring based web application. We are using spring security configurations for login. I have a requirement and not getting how to implement it. Requirement: Whenever anonymous users clicks on 'View Address Book' link on home page they should be redirect to login/signup page....

XPages: Login not working?

login,xpages
im having a huge problem with the login node in the Web Browser. I click "Login" on the top right corner of my layout. It gets me to the login screen. All fine so far. Then im trying to login and as soon as i typed in my login-data and...

Failing to Log Into Umbraco admin Area

.net,login,umbraco
Hi Guys I have inherited an Umbraco site but I am getting a splash screen informing me that "Looks like there's still work to do". I am getting three errors in the console which my have somthing to do with this; Microsoft SQL Server is telling me that there is...

PHP HTTP 500 during same domain redirect

php,redirect,login,session-state,http-status-code-500
I create a clients manager for an association and during an update it stopped to work online. In my local machine it does function without problems. Updates are about some second page's buttons actions. The website is composed of two pages: the first one is a simple login page with...

Redirect Codeigniter user when using back button

php,codeigniter,login
If the user hits their browser's Back button directly after logging into my Codeigniter web app they're taken back to the login form. Instead I'd like the user to be directed to the homepage. Also, when the user logs out, I'd like to prevent access to the Account page, but...

Can't find newly-created folders in file system

java,login,javafx,filesystems
I'm trying to create a folder for save files if it doesn't already exist, but I can't find the folders I'm creating in the filesystem after I run my code. Here's the event handler for my login button: @FXML private void loginBtnAction(ActionEvent event) { // Check for save file folder...

How to Create a Parse.com Login Form in Wordpress Website?

wordpress,login,parse.com,pfuser
I'm Developing a Parse iOS app and i would like to have a Website Version ! In My iOS app i can Register PFUsers. I would like to do the same for my Website but i don't know how to link Parse Login Form with my Wordpress Website. Does Anyone...

Is this Python login pratically insecure?

python,security,login,brute-force
I was making a bot to sign on the the site of an open-source project's website(not going to mention any names), and I noticed that my bot was not hitting a max login attempts ban no matter how many times I attempted to login with incorrect credentials. def login(account,passwd): r...

Twitter iOS User Login

ios,twitter,login,oauth
I've implemented Twitter Login in my iOS app with the following tutorial: https://dev.twitter.com/twitter-kit/ios/twitter-login But after I chose a Twitter account when I log in the first time, the app always defaults to this account. I would like to enable users with multiple accounts to select the Twitter account they'd like...

Can't connect to database after restoring database from backup

java,sql-server,login,database-restore,squirrel-sql
I restored my local developing database with a backup file made from production database with SQL Server Management Studio. I overwrited my local database on that restore. Now I can't connect to the database with SQL Squirrel. What could have caused this and how to fix it? Thank you. I...

After submitting a login form, URL remains on the action php

php,mysql,forms,login
Hi there I am currently working on a user login where there can be 2 different situations when a person submits the form. What I am trying to accomplish is that if someone logs in, they would either be redirected to the user page or the admin page depending on...

OO PHP | Properly Passing POST Paramaters

php,oop,post,methods,login
I am relatively new to OO PHP and I am trying to create a login class. The issue I am having is that I want to pass the POST values username and password to my class but I cannot establish a decent way of doing so. below is a snippet...

unable to register an user using afnetworking

ios,json,login,afnetworking,http-status-code-401
I want to create a user to a back-end server, I need to enter following information to register user. { "user": { "email": "[email protected]", "password": "secret", "password_confirmation": "secret", "seed_recipes": true //optional } I wrote following code for registering a user: AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; manager.requestSerializer = [AFJSONRequestSerializer serializer]; NSDictionary...

Login Web Page Automatic Logout

php,web-applications,login
I am creating a login page for covering important stuff for only the admin. Here is my current successful code. <?php $username = "adminuser"; $password = "adminpass"; $randomword = "helloworld"; if (isset($_COOKIE['MyLoginPage'])) { if ($_COOKIE['MyLoginPage'] == md5($password.$randomword)) { ?> <?php $dbhost = 'localhost'; $dbuser = 'user'; $dbpass = 'pass'; $conn...

facebook sdk4 android getprofile

android,facebook,login,sdk
I'm having this trouble: When I try to do the method "Profile.getprofile()" it returns me null even using ProfileTracker. Here's my code: public class Login extends Activity implements OnClickListener,ConnectionCallbacks, OnConnectionFailedListener { //TODO Facebook ProfileTracker mProfileTracker; private CallbackManager callbackManager; final List<String> permisos = new ArrayList<String>(); private FacebookCallback<LoginResult> fb = new FacebookCallback<LoginResult>()...

Multi service with one-login authentication (Single sign-on)

authentication,login,single-sign-on,saml
Single sign-on (SSO) is a property of access control of multiple related, but independent software systems. With this property a user logs in once and gains access to all systems without being prompted to log in again at each of them. (from wikipedia) now, I have more web service:...

Different storyboard's entry points depending on a parameter

ios,login,uiviewcontroller,storyboard,entry-point
I'm developing an app where I need to manage the common scenario of users having to provide credentials to log in and access the main app's functions. This way, the view I need to firstly show the user if she's not logged in is the view to allow her to...

issue Login cakephp

cakephp,login
i'm new cakephp and i have 1 question, please help me! I have 1 table name quan_tri_viens same users, but i don't use table users i read and follow the instructions http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html but i can not sign in Model: QuanTriViensController <?php App::uses('AppController', 'Controller'); class QuanTriViensController extends AppController { public function...

Need advise for login, user's data input/output implementation design for PHP

javascript,php,authentication,login,server
I need some advise on PHP and web app, and I want to create a system that allows user to login and write/read their text. Imagine a simple website that each user can write or read only one simple text file. Suppose the user successfully logins to the website, the...

Parse (Java for Android) login returns Object Not Found

java,android,login,parse.com
I'm trying to login using Parse for android. If I enter the correct username and password, I log in successfully. But when I use a wrong password or username, I always get error 101: object not found. Here's the code (Notice "username" and "password" are EditText): private void doLogin() {...

Login with Facebook option trigger suggest to download an app

android,ios,facebook,osx,login
Yesterday I logged in to Airbnb with my Facebook account on my OSX. Shortly later I got a notification both on my iPhone and computer saying "Airbnb is available to install on your iPhone" My question is, does anyone here know how this was done? Is this a feature available...

How to log in user to my web application when he click on some link in his email

php,mysql,email,login,yii2
Every day I need to send emails to my users with links for articles that they may be interested in on my news site. Example of link: <a href="http://example.com/article/5/some-seo-title>title of article </a> I am keeping data about users in my user table: id, username, email ... When user clicks some...

PHP token security

php,security,login,token
I wrote a PHP application which requires a login. This application is private so no new users can register. First I used sessions to identify the users but it lead to problems on tablets because they lost their sessions. I think this is because of energy saving operations. Now I...

how to correctly handle user's data after login

php,jquery,cookies,login
I am building a website that allows user to sign in. I currently have the register & login set up using jQuery -> php(on server) -> db and back, but now I am at lost on how to handle once the user logs in. For example, if I wanted to...

Android: automatic logout

java,android,time,login,logout
Hi I want to logout automatically after a determined time of inactivity my Android app. In the Second Activity in onPause I save the time when the app is in pause in a variable. In MainActivity in method onresume I save the time when the app restarts in another variable...

Custom ID providers with Identity Toolkit?

login,google-identity-toolkit
Is there a way to add custom identity providers with the Google Identity Toolkit? The default NASCAR doesn't support OpenID or Twitter. It appears that adding providers was possible in an old version of the toolkit, and that page indicates that they hoped to make doing so easier in future...

On login form chrome will save password but with no username

php,google-chrome,login
i am trying to save password with username when loging-in with Google Chrome. But unfortunately the chrome only show password with ( no username ). What seems to be the problem? Here's the image for better imagination. is maybe problem that input of username got name attribute email? (should it...

returning login status in php [CURL] [closed]

php,wordpress,curl,login
how are you? i have a non expected result , it should return "1" when login successfuly , and "0" when login error, and it always return "0" <?php $username = 'admin'; $password = 'admin'; $loginUrl = 'http://localhost/wordpress/wp-login.php'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $loginUrl); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, 'log='.$username.'&pwd='.$password);...

authentication ruby valid_password error

ruby-on-rails,login,devise,passwords
I'm new to ROR. I tried for simple login with email and password. I can't authenticate the password. It's repeated question, and my error is not yet cleared with old questions. My code is user = User.find_by_email(params[:email]) user.valid_password?(params[:password]) if @user = User.find_by_email(params[:user][:email]).valid_password?(params[:user][:password]) #render :json=> user.as_json(:status=>'success', :Message=>'Sucessfully Registered', :username=>user.username ), :status=>201...

How to hide a
using PHP

php,login,logout
Hi I have used some code but I want it so when the name is NULL it is hidden, if this is possible please help. Here is the code <p id="top"><strong>Welcome back <?php echo $_SESSION['name']; ?> [<a href="admin/logout.php">Logout</a>]<br/>Welcome To the homepage of The Journalist's</p> I want it to be when...

Remote connection to embedded device in field

login,ssh,embedded,ethernet
I would like to ask about the way how to establish remote connection to Linux based embedded device in the field. I have a small linux board I want to place in remote location. It has an internet access through ethernet. Than I have a Linux server with public IP...

Login example MFC

login,mfc
This is a very simple task. I just want to get a username and password from the user. If the username is admin and the password is password then on clicking the ok button should call the next dialog. If the username and password is something else then a message...

Bypassing JConsole requirement for username/password - when using a Jaas custom login module with JMX to handle authorization and authentication

java,login,jmx,jaas,jconsole
I'm using JConsole to access an MBean that is running. The MBean uses a custom Jaas login module and is run with the following command: java -classpath UserLGUGroupHandlingApplication.jar;MBeanSecure.jar -com.sun.management.jmxremote.login.config=management.properties -Djava.security.auth.login.config=./sample_jaas.config com.test.running.RunningImplementation With the management.properties file looking like this: com.sun.management.jmxremote.access.file=jmxremote.access com.sun.management.jmxremote=true...

WordPress login & logout with UserPro in menu

php,wordpress,login,logout
I'm using a plugin called "UserPro". I'm also using a function in my menu to show either "Login" or if logged in "Logout". function autov_add_loginout_navitem($items) { $login_item = '<li class="login">'.wp_loginout($_SERVER['REQUEST_URI'], false).'</li>'; $items .= $login_item; return $items; } add_filter('wp_nav_menu_account_items', 'autov_add_loginout_navitem'); the plugin has a short code <?php echo do_shortcode('[userpro template=login]'); ?>...

The Enter button not working on Login page

php,login,acceptbutton
I just made a login system but I can only login with pressing the button on my screen, not using the enter button on my keyboard. How can I enable this? I read something about the AcceptButton, but how do I apply this? my code: login.php <?php require('inc/functions.php'); session_start(); if(checkLogedIn()){...

Password encryption in codeginiter function

php,codeigniter,encryption,login,md5
How can i encrypt my password on codeigniter. Here is my code $password = $this->security->xss_clean($this->input->post('password')); How to make it md5?...

Account onLogin hook Meteor loop

javascript,login,meteor,hook,account
I am building an application using Meteor. I want to create a new Cart ID (to act as a cart where I can store items) each time a user logs into my application. However, every time I open a new page in the application, a new Cart ID is created....

Error in laravel 4

php,laravel,laravel-4,login,admin
When i try to log in , it redirects me to www.example.com/admin/{username} but it shows a NotFoundHttpException error. Thank you in advance! The routes.php file Route::get('/admin', '[email protected]'); Route::get('/logout', '[email protected]'); Route::get('profile', function() { return "welcome! Your username is" . Auth::admin()->username; }); Route::resource('sessions', 'SessionsController', ['only' => ['index', 'create', 'destroy', 'store']]); here is...

One time Sign-in [duplicate]

java,android,login
This question already has an answer here: How to display a one time welcome screen? 3 answers I am creating a project where I have a login screen, which is used for user to login into the Application. This login screen should only be visible the first time, so...

Jsoup Login aspx Digikey

java,parsing,post,login,jsoup
I have a problem with connect to Digikey.it with jsoup. I need login with my account and use cookies, but when i execute post, do not login. This is my code: String UrlLogin="https://www.digikey.it/classic/RegisteredUser/Login.aspx?ReturnUrl=%2fclassic%2fregistereduser%2fmydigikey.aspx%3fsite%3dit%26lang%3dit&site=it&lang=it"; Connection.Response response = Jsoup.connect(UrlLogin) .method(Connection.Method.GET) .execute(); Document loginPage = response.parse(); response = Jsoup.connect(UrlLogin)...

Unexpiring an expired SQL Server Login password (Password cannot be changed)

sql-server,login
I have a SQL server Login which password has recently expired. Unfortunately this password is necessary as we use it across Dev Machines for application testing purposes. I CAN'T change this password, but I need to unexpire it. The error I am getting is : Error 28000 Login failed for...

How to get the right variable to get the right user logged in? [closed]

php,login,mysqli,statements
I'am trying to make a PHP login for my university website where I want the user to login with their usernames. I'm trying this query in mysqli with prepared statements but its giving error like the number of parameters exceed. It's giving the right error and I know that I'm...

Google SignIn State

login,oauth-2.0,google-oauth
I'm trying to build a Google signin button into my website. I'm trying to avoid using their built-in button. The code below works to sign in a user, but I can't figure out how to make my webpage remember that they're signed in when the user refreshes the page, or...

Facebook login using Kohana

facebook,login,kohana
I'm using Kohana and I'm trying to make facebook login. Where should I place appId in my project? I put it in facebookauth/config/facebook file but it's still showing me previous AppId that I have used. Is there another place that I have to change it? My code in config file...

(PHP) LogIn script Doesn't work

php,redirect,login,sign
<?php //CONNECT TO DATABASE $db_host="localhost"; $db_username="root"; $db_pass=""; $db_name="admin"; @mysql_connect("$db_host","$db_username","$db_pass","$db_name") or die ("not connect"); @mysql_select_db("$db_name") or die ("no database"); echo "succesful connection"; //THEN I CHECK THE VALUES FROM MY FORM if($_SERVER ['REQUEST_METHOD']=='POST'){ $username=$_POST['username']; $password=$_POST['password']; $username=htmlspecialchars($username); $password=htmlspecialchars($password); //SEARCH INTO MY DATABASE TABLE $SQL="SELECT *...

Only number's field ASP.NET

css,asp.net,vb.net,login
I'd like to have special fields with ASP.NET, I use ASP:TextBox for my login page. The idea is : when you are in a mobile device, it recognizes the field and purpose a special keyboard with only numbers (my login page uses only numbers) I tested that, but it doesn't...

Laravel 5 Override Login Function

php,authentication,laravel,login,laravel-5
I'm working on my Laravel Project and trying to override the default postLogin() from AuthenticatesAndRegistersUsers . So I have updated my AuthController and added this to override the built-in login, public function postLogin(Request $request) { $this->validate($request, [ 'email' => 'required|email', 'password' => 'required', ]); $credentials = $request->only('email', 'password'); if ($this->auth->attempt($credentials,...

PHP login script

php,mysql,session,login
I have the following PHP script for login. When I type valid credentials then it does not redirects to index.php. It simply reloads the page But when I type wrong credentials it gives me message which is OK. My PHP code is as follows: if(isset($_POST['submit'])){ $username = mysqli_real_escape_string($con,$_POST['username']); $password =...

change the errors of my login script

php,mysql,database,validation,login
This is a part of my login script. I'm trying to get an error more Specifically so that if you are logging in and you type your username correct but your password is incorrect that the error is: Wrong password and not: username or password are incorrect. And if you...

MVC5 Login to custom Database

asp.net-mvc,authentication,login,asp.net-mvc-5,owin
What if you have your own database and a BAL (Business Access Layer) and don't want to use DefaultConnection and the template ASPNET database tables but my own user tables? How can you use a custom database? ConnectionString: public class AppDbContext : IdentityDbContext<AppUser> { public AppDbContext() : base("DefaultConnection") { }...

AJAX Login Script not working anymore

javascript,php,jquery,ajax,login
I coded a login script based on an AJAX request which also worked before, but somehow it stopped working although i did not change anything special in the code. I'm testing my website with XAMPP, but when i try to login with my credentials, (does not matter if they are...

Use request and passport npm login account

node.js,login,request
I am using nodejs for a project,now I want login my account with passport npm,but not from webpage,from request post method,can it be done? main code like this: router.post('/login',function(req, res, next) { passport.authenticate('local', function(err, user, info) { if (err) { return next(err); } if (!user) { return res.json(null); } req.logIn(user,...

FacebookCallback.onCancel is getting called when trying to login using facebook sdk

android,facebook,login,facebook-sdk-4.0
I have an Android app and I am trying to use facebook's sdk (version 4.1.0) to get a token and login. Here is my code: public class LoginActivity extends Activity { private CallbackManager callbackManager; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); FacebookSdk.sdkInitialize(getApplicationContext()); callbackManager = CallbackManager.Factory.create(); LoginManager.getInstance().registerCallback(callbackManager, new...

Login Info Page Not Redirecting

php,mysql,login
I am having trouble redirecting my code to another page after a correct username/password has been submitted. After I enter the username/password and hit submit, the page does not redirect. The page just reloads and clears the field inputs (even though it's a sticky form), and stays at the same...

Launching a JMX agent with a custom JAAS login module, setting login() to always return true

java,login,jmx,jaas,mbeans
I'm building a custom JAAS module for a JMX instance. The file that is being run is the following: MBean Interface package com.this.mbean; public interface ImplementationMBean { public void setName(String name); public String getName(); public void setNumber(int number); public int getNumber(); public boolean getKilled(); public void setKilled(boolean killed); } Implementation...

Drupal7 modified user login no effect?

php,templates,drupal,login
I am new to Drupal. I am trying to create a modified login page. I have modified the template.php of my theme with the name "cmse" in /sites/all/themes/cmse/ This is my template.php: <?php function cmse_preprocess_html(&$vars) { $vars['classes_array'][] = 'homepage'; $vars['classes_array'][] = 'teaser'; } function cmse_theme() { $items = array(); //...

How to use the same username for different users in different organizations?

ruby-on-rails,authentication,ruby-on-rails-4,login,devise
I use the same user table for all organizations. I have org_id in my users table to allocate the users from different organizations. Now I want to set a unique username for only that organization. For example, org_id = 1 have admin username, org_id = 2 also have admin username....

Android Login Screen after Application enters foreground again. Login Screen is NOT root Activity

android,login,onresume,onpause
I'm programming a Voting Android Application. After the user has chosen an Election where he wants to make a vote, the user gets redirected to a Login Activity where he has to enter a password. After that, a Ballot Activity gets started and the person can choose some candidates. A...

Facebook login using SDK 4

facebook,login,kohana
I'm trying to make Facebook login for my site. I have Facebook App, I've made AppId, Secred and it is shown facebook login but I can't set session. I'm using facebook-php-sdk-v4-4.0-dev and Kohana Framework. It doesn't show me session data. ErrorException [ Notice ]: Undefined variable: user_profile Please how to...

Symfony2 & PHPUnit - Access getContainer()

php,symfony2,login,parameters,phpunit
I have a problem with my PHPUnit test on symfony2. To connect to my application, I use a web service, so I created a UserProvider. In my function loadUserByUsername I use symfony2 parameters saved in app/config/parameters.yml. As I'm not in a controller I need to use the global variable $kernel...

Have to reload page for if statement to be parsed

php,html,session,login
First: Code! loginform.html <form action="" method="post" id="loginform"> <h3>Login</h3> <input type="text" name="username" placeholder="Username"> <br> <br> <input type="password" name="password" placeholder="Password"> <br> <input type="submit" name="logsubmit" value="Login" class="registerbutton"> </form> login.php <?php require_once("../resources/config.php"); require_once("../resources/library/dbconnect.php"); function checkUser($con) { if...

Creating a login using sql in java

java,sql,swing,netbeans,login
I am trying to figure out why my code is getting sent to the exception catch block and how to make this part of my log-in work correctly. The problem seems to be in Class.forName(driver); While debugging I noticed that I get an error, "variable source not available, source compiled...

How to check for an @ in an email address from a form post

php,forms,email,login,verification
I have a form with login and registration. My Form <form method="POST" action="login.php"> <input type="text" name="mail" value="Input your email"/> <input type="submit" value="Check"/> </form> Now, if someone enters their email, I want to check if there is an "@" in the address. I have tried using an array, but that´s not...

Continuous query fail in login script

php,login
I'm making a login script but it keeps failing and printing out the "connection failed". Why does the query fail and how can i make this better? session_start(); if(isset($_POST['submit'])){ $email = $_POST['email']; $pass = $_POST['pass']; $connection=mysqli_connect("localhost","root","","dbname") or die('Connection failed.'); mysqli_select_db($connection, 'dbname') or die ("Connection failed."); $query = mysqli_query($connection, "SELECT *...

How to change current user in Yii2

login,yii2
I'm still new in yii2 and I'm trying to make my admin user able to switch to another user so he can see the pages exactly like this users (If they report any problem/bug). I found the switchIdentity() method, but I just can't figure out how to call this $identity...

jQuery Flip front to 2 different backsides

javascript,jquery,animation,login,flip
I am having trouble getting a certain feature to work. As you can see here: https://jsfiddle.net/y5jn4tco/1/ <div> CHECK CODE AT JSFIDDLE</div> I am using the flip jquery plugin which made a flip, where you choose a category, and then gets sent to a certain login screen. My issue is, that...

Facebook login returning null for name result

ios,facebook,login,sdk
I am trying to use the new Facebook 4.0 sdks, but I was quite confused about how to get the name once I successfully get the permissions. The nslog returns a null value for some reason? FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login logInWithReadPermissions:@[@"public_profile"] handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { if...

What's the ideal cloud storage for String Objects?

android,login,server
In my app I would need a way for users to log in. Once they log in point balances are kept and synced with the cloud. The only things that would need to be stored in the cloud are String userID, String Points, and String Password. I have no clue...

backbone persistent login - login removed on browser quit

javascript,rest,authentication,backbone.js,login
I am working on a backbone application that hooks into RESTful API. One problem I having at the moment, is that a user can be logged, they can then close there browser, reopen it go to my application and be logged out. Is is possible to make a login persistent...

PHP login not working (comparing plain submitted password with encrypted one) [duplicate]

php,mysqli,login,passwords
This question already has an answer here: Secure hash and salt for PHP passwords 13 answers I'm trying to make a login with prepared statement but kept failing so I let every step have an echo when failed. I get a "Password verify: (0)" so i'm guessing the problem...

Log in through active directory

c#,login,active-directory
I want to create LogIn button through Active Directory. So i have an idea to take Name logged user(Windows) from his Domain: string Name = System.Security.Principal.WindowsIdentity.GetCurrent().Name; and then take Group for Login above: string Group = System.Security.Principal.WindowsIdentity.GetCurrent().Groups.ToString(); // <---I think this is wrong ? string allowedGroup = "Admins"; then something...

How JSON Web Tokens work? Not sure what is different from cookies

security,cookies,login,token,jwt
When using cookies they are stored on the server and compared to the ones coming in the request from a client. What are the JWTs compared to? are they being decoded into their components?

Safety of trying to login (preventing time-attack)

c#,.net,security,hash,login
I came across a security issue. Please have a look at the pseudocode below public static bool TryLogin(string email, string password) { if (UserExists(email)) // here is the problem return false; var hash = GetRealPasswordHash(email); var hash2 = GetHash(email, password); return SlowEquals(hash, hash2); } Some of you may already see...

Session not working PHP

php,oop,session,login
The session is not getting created and keep getting redirected to login.php. Really don't understand why! I really need help :( Here is my Session class: class Session { private $logged_in=false; public $user_id; function __construct() { session_start(); $this->check_login(); if($this->logged_in) { // actions to take right away if user is logged...

Hashing and password_verify

php,hash,login,passwords,verification
I'm working with my little PHP project and I'm trying to implement hashing on registration and I need to verify my hashed password when user want to log in. I tried a lot but I don't really get how I could use password_verify function in my code. In my registration.php...

How to use curl return value in php script

php,wordpress,curl,login
I have two servers: A where WP is installed on one, and B where it's not. Application run on B is trying to use WP credentials for login. I have a login form on server B: <h1>Login</h1> <div> <form class="forma" id="form" action="login.php" method="POST"> <div class="form-group"> <label>Username</label> <input class="form-control" type="text" name="username"...

Login username AND email in Parse Android

android,login,parse.com
I need to implement this, I want check twice both, email and username, So, I thought if I do a normal query and check twice both, does work, but it was a error because when I tried to check password field, it's a problem. I saw this answer from parse...

I keep receiving invalid login parameters every time i try to log in a user on my Log in page

xcode,swift,login,parse.com
I am using swift with parse on xcode and i keep receiving this error: [Error]: invalid login parameters (Code: 101, Version: 1.7.2) whenever i try to log in a user i know the user is created in the parse backend and its information is correct. What can i do to...

Prevent opening page without login

php,html,login
I have created a webpage (lets call the root as main.php) and decided to put a login on top of it (file index.php). The login works fine, but the problem is this. If I type the address of the page (main.php) directly in the browser, it is opened. Is there...

Can't login to Magento admin panel

magento,login,admin,backend,magento-1.9
For test and development, I duplicated our Magento shop to a sub-domain. mysql -u root -p -e "USE bitnami_magento; UPDATE core_config_data SET value ='http://subdomain.site.com/' WHERE core_config_data.path = 'web/unsecure/base_url'; UPDATE core_config_data SET value ='https://subdomain.site.com/' WHERE core_config_data.path = 'web/secure/base_url'; Everything works, but not the admin Login. On the login page we get...