TWiki
>
TWiki/ Web
>
TWikiUsersPasswordDotPm
(revision 3) (raw view)
Edit
Attach
---+ Package =TWiki::Users::Password= Base class of all password handlers. Default behaviour is no passwords, so anyone can be anyone they like. The methods of this class should be overridded by subclasses that want to implement other password handling methods. %TOC% ---++ ClassMethod *new* <tt>($session) -> $object</tt> Constructs a new password handler of this type, referring to $session for any required TWiki services. ---++ ObjectMethod *finish* <tt></tt> Complete processing after the client's HTTP request has been responded to. 1 breaking circular references to allow garbage collection in persistent environments ---++ ObjectMethod *fetchPass* <tt>($login) -> $passwordE</tt> Implements TWiki::Password Returns encrypted password if succeeds. Returns 0 if login is invalid. Returns undef otherwise. ---++ ObjectMethod *checkPassword* <tt>($user,$passwordU) -> $boolean</tt> Finds if the password is valid for the given login. Returns 1 on success, undef on failure. ---++ ObjectMethod *deleteUser* <tt>($user) -> $boolean</tt> Delete users entry. Returns 1 on success, undef on failure. ---++ ObjectMethod *passwd* <tt>($user,$newPassU,$oldPassU) -> $boolean</tt> If the $oldPassU is undef, it will try to add the user, failing if they are already there. If the $oldPassU matches matches the login's password, then it will replace it with $newPassU. If $oldPassU is not correct and not 1, will return 0. If $oldPassU is 1, will force the change irrespective of the existing password, adding the user if necessary. Otherwise returns 1 on success, undef on failure. ---++ encrypt( $user, $passwordU, $fresh ) -> $passwordE Will return an encrypted password. Repeated calls to encrypt with the same user/passU will return the same passE. However if the passU is changed, and subsequently changed _back_ to the old user/passU pair, then the old passE is no longer valid. If $fresh is true, then a new password not based on any pre-existing salt will be used. Set this if you are generating a completely new password. ---++ ObjectMethod *error* <tt>() -> $string</tt> Return any error raised by the last method call, or undef if the last method call succeeded. ---++ ObjectMethod *getEmails* <tt>($user) -> @emails</tt> Fetch the email address(es) for the given username. Default behaviour is to look up the users' personal topic. ---++ ObjectMethod *setEmails* <tt>($user,@emails)</tt> Set the email address(es) for the given username in the user topic.
Edit
|
Attach
|
P
rint version
|
H
istory
:
r5
<
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r3 - 16 Jan 2007 - 01:11:58 -
TWikiContributor
TWiki/
Log In
or
Register
TWiki/ Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Abacos
Acbahia
AnpedGT16
ArcoDigital
Argumento
Avsan
CalculoB
Ceb
Cetad
CetadObserva
Cibercultura
Ciberfem
CiberParque
ColoquioCiags
Coloquiofasa
ConexoesSaberes
Cpdteste
Cppd
Creche
Cridi
Da
DACN
DCE
DelzaTeste
DeniseCarla
DepHistoria
DicionarioBelasartes
Ecologia
EDC
Educandow
EduMus
EleicoesReitor2010
Encima
Enearte
Estruturas
EstruturasEng
FACED
FAT
FepFaced
GEC
GeneticaBiodiversidade
GeneticaBiodiversidade3
GeneticaBiodiversidade
Gepindi
GetecEng
Godofredofilho
GrupoAlgebra
ICI010
Informev
Ites
LabioComp
LEG
Lepeja
Letras
LivroLivreSalvador
Main
MaisUm
Mata07
Mefes
MefesCpd
MetaReciclagem
Neclif
NelsonPretto
Nuclear
Numcad
Nutricao
Observa
OrfaosdeRua
PauloCostaLima
PdI
PescandoLetras
PETFilosofia
Pgif
PGNUT
PortalPpga
PosCultura
Pospetroigeo
PPGAC
PPGE
PpggBio
Ppggenbio
Pretto
Proad
PROGESP
ProjetoLencois
Quimica
RadioFACED
RadioTeatro
RadioWeb
Riosymposium10
Ripe
Salasdoctai
Sat
Sedu
SemBio
SeminarioPibid
SimoneLucena
Sociologia
SSL
Tabuleiro
TabuleirosUfba
TCinema
TerritoriosDigitais
TWiki
Twikidea
UFBAIrece
UniversidadeNova
VizinhoEstrangeiro
XIISNHCT
Български
English
Español
日本語
Português
Copyright � by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback