The auth object and the user action are already defined in the scaffolding application.
Obiekt auth i akcja user są już zdefiniowane w szkieletowej aplikacji.
The "auth" variable refers to the username and password which we can use to secure our site using.htaccess.
Zmienna auth odwołuje się natomiast do użytkownika i hasła, którym możemy zabezpieczyć dostęp do naszej strony, używając.htaccess.
Append the following code to your model after the auth object is defined: 1 2 3
Dołącz następujący kod do modelu, po definicji obiektu auth: 1 2 3
It can also be used to avoid having sensitive information in the invoking command line (which would be visible to other processes on most systems), especially when the -auth or -pauth options are used.
Można to też wykorzystać gdy chcemy uniknąć umieszczania informacji traktowanej jako niejawna w wierszu poleceń wywołania programu (co na większości systemów byłoby widoczne dla innych procesów), szczególnie, gdy równocześnie stosowane są opcji -auth lub -pauth.
For example, to allow a visitor to post comments, but only update their own comments (assuming crud, auth and db.comment are defined)
Na przykład, aby umożliwić odwiedzającemu komentowanie, ale tylko z możliwością poprawiania własnych komentarzy (zakładając, że crud, auth i db.comment są już zdefiniowane)
Now edit the model of your web2py application and place the following lines somewhere after the definition of the auth object
Edytujmy teraz model aplikacji web2py i umieśćmy tam następujące linie kodu, gdzieś po definicji obiektu auth
Other algorithms can be configured only for kickstart installations, by using the - passalgo or - enablemd5 options for the kickstart auth command.
Inne algorytmy mogą być konfigurowane tylko dla instalacji kickstart używając opcji --passalgo lub --enablemd5 dla polecenia kickstart auth.
Yii has a built-in authentication/authorization (auth) framework which is easy to use and can be customized for special needs.
Yii posiada wbudowany framework uwierzytelnienia/autoryzacji (auth), który jest łatwy w użyciu i może być dostosowywany do konkretnych potrzeb.
The following examples assume that the/etc/ppp/options file contains the auth option (as in the default/etc/ppp/options file in the ppp distribution).
Następujące przykłady zakładają, że plik/etc/ppp/options zawiera opcję auth (jak w domyślnym pliku/etc/ppp/options w dystrybucji ppp).
you either need to do a local operation (-s, -g, -o) or supply an authentication file ( - auth); see - help for a short help
należy wykonać operację lokalną (-s, -g, -o) lub wskazać plik uwierzytelnienia (--auth); krótka pomoc dostępna jest z --helpy
Note that you still have to call auth.wiki() in the controller or view in order to expose the wiki interface, since the resolve=False parameter instructs the auth object to just build the wiki model without any other interface setup.
Trzeba jeszcze wywołać auth.wiki() w kontrolerze lub widoku w celu udostępnienia interfejsu wiki, ponieważ parametr resolve=False nakazuje, aby obiekt auth po prostu zbudował model wiki bez jakiegokolwiek ustawiania interfejsu.
Avoid using the same label as any of the Django contrib packages, for example auth, admin, or messages.
Unikaj używania takich samych etykiet jak którykolwiek z pakietów contrib, na przykład auth, admin lub messages.
Make sure this is called after the auth instance is created and before any change to the wiki tables auth.wiki(resolve=False)
Upewnij się, że to jest wywoływane po tym, jak utworzona została instancja auth i przed jakąkolwiek zmianą tabel wiki auth.wiki(resolve=False)