1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
//! A password class with multiple customized verifications. 
 
inherit Variable.VerifiedString; 
 
int width = 40; 
constant type = "VerifiedPassword"; 
 
string render_view( RequestID id ) { 
  return "******"; 
} 
 
string render_form( RequestID id, void|mapping additional_args ) { 
  additional_args = additional_args || ([]); 
  additional_args->type="password"; 
  return Variable.input(path(), "", 30, additional_args); 
}