Scanne avec ton iPhone pour installer
This is a simple login system that you can add to any of your shortcuts! If you post a shortcut that contains my login system, please credit me. You need to download the data jar app before downloading this shortcut for this login system to work.
Nouveautés
Version 2.1
+Minor bug fix. +Icon change.
Ce qu’il fait
40 actions-
Text
-
Show Result
-
Choose from MenuLogin system
-
Choose from MenuSignup
-
Ask for InputCreate username
-
Set VariableCreate username
-
Check If Value Existsdk.simonbs.DataJar
-
Set VariableDoes this username already exist
-
If
-
Show AlertError
-
If
-
Ask for InputCreate password
-
Set VariableCreate password
-
Generate Hash
-
Set Valuedk.simonbs.DataJar
-
Show Alert
-
Choose from MenuLogin
-
Ask for InputEnter username
-
Set VariableUsername
-
Check If Value Existsdk.simonbs.DataJar
-
If
-
Get Valuedk.simonbs.DataJar
-
Set VariablePassword input by data jar app
-
Ask for InputEnter password
-
Set VariablePassword input by user
-
Generate Hash
-
If
-
Show Alert
-
If
-
Show AlertError
-
If
-
Show AlertError
-
Choose from MenuHelp
-
Choose from MenuWhat do you need help with?
-
Choose from MenuAding content to your account
-
Show Alert
-
Choose from MenuContact info
-
Show Alert
-
Choose from Menuother
-
Show Alert
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#define color yellow
#define glyph key
show()
menu "Login system" {
item "Signup":
prompt("Create username")
@CreateUsername
rawAction("dk.simonbs.DataJar.CheckIfValueExistsIntent", {
"keyPath": "{@CreateUsername}"
})
@DoesThisUsernameAlreadyExist
if @DoesThisUsernameAlreadyExist == 1 {
alert("Username already exists", "Error")
} else {
prompt("Create password")
@CreatePassword
const Hash = hash(@CreatePassword)
rawAction("dk.simonbs.DataJar.SetValueIntent", {
"keyPath": "{@CreateUsername}",
"valueConversionMode": "text",
"values": "Hash"
})
confirm("Account created")
}
item "Login":
prompt("Enter username")
@Username
rawAction("dk.simonbs.DataJar.CheckIfValueExistsIntent", {
"keyPath": "{@Username}"
})
if ValueExists == 1 {
rawAction("dk.simonbs.DataJar.GetValueIntent", {
"keyPath": "{@Username}"
})
@PasswordInputByDataJarApp
prompt("Enter password", "Text")
@PasswordInputByUser
const Hash1 = hash(@PasswordInputByUser)
if Hash1 == @PasswordInputByDataJarApp {
confirm("Correct password")
} else {
alert("Username doesn't exist", "Error")
}
} else {
alert("Incorrect password", "Error")
}
item "Help":
menu "What do you need help with?" {
item "Ading content to your account":
confirm("This is just a login system that you can put inside of some of your shortcuts. (I may add a way to add content to your account in the future) If you post a shortcut online that contains my login system, please credit me.")
item "Contact info":
confirm("Contact me at [email protected]")
item "other":
confirm("If you have any other things you need help with about this shortcut or if you have any complaints, or any new features, or bugs you would like to tell me about, contact me at [email protected]")
}
}
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de williamf
Ça pourrait aussi te plaire
Publicité