Solved

how to restrict password

Posted on 2008-06-10
1
696 Views
Last Modified: 2013-12-26
how to restrict the password entry to be alphanumeric and should contain atleast one special characters using powerbuilder. Password length is already restricted from 6 to 10 chars,

thanks

shaju
0
Comment
Question by:Shaju Kumbalath
1 Comment
 
LVL 14

Accepted Solution

by:
sandeep_patel earned 250 total points
ID: 21752002
use Match function as below

string ls_pwd
boolean lb_return
lb_return = Match(ls_pwd,"[~`!@#$%^&]")
If Not lb_return Then
     Messagebox('Invalid','Password must contain atleast one special character')
     Return 1
End If

You can include other characters in above pattern if you want them in password.

Regards,
Sandeep


0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question