Solved

how to restrict password

Posted on 2008-06-10
1
689 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
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.

776 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