ShareShortcuts

Login System V2.1

This is a simple login system that you can add to any of your shortcuts!

williamf
Dupliquer « Login System V2.1 »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que williamf soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
44K
Enregistré
1
Actions
40
Catégorie
API
Version
2.1
Langue
EN

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.

Historique des versions
2.1 5 févr. 2022

+Minor bug fix. +Icon change.

2.0 5 févr. 2022

+Enter signup system redone. I fixed the signup system so that you can create an account without opening the data jar app! (You still need the data jar app to be installed on your device for this to work) I also changed the help menu

1.1 5 févr. 2022

This is V1 with minor updates. 1 menu renamed + added variables Variables were added so that this shortcut is easier to understand.

1.1 5 févr. 2022

$

1.0 4 févr. 2022

First release

Ce qu’il fait

40 actions
  1. Text
  2. Show Result
  3. Choose from Menu
    Login system
  4. Choose from Menu
    Signup
  5. Ask for Input
    Create username
  6. Set Variable
    Create username
  7. Check If Value Exists
    dk.simonbs.DataJar
  8. Set Variable
    Does this username already exist
  9. If
  10. Show Alert
    Error
  11. If
  12. Ask for Input
    Create password
  13. Set Variable
    Create password
  14. Generate Hash
  15. Set Value
    dk.simonbs.DataJar
  16. Show Alert
  17. Choose from Menu
    Login
  18. Ask for Input
    Enter username
  19. Set Variable
    Username
  20. Check If Value Exists
    dk.simonbs.DataJar
  21. If
  22. Get Value
    dk.simonbs.DataJar
  23. Set Variable
    Password input by data jar app
  24. Ask for Input
    Enter password
  25. Set Variable
    Password input by user
  26. Generate Hash
  27. If
  28. Show Alert
  29. If
  30. Show Alert
    Error
  31. If
  32. Show Alert
    Error
  33. Choose from Menu
    Help
  34. Choose from Menu
    What do you need help with?
  35. Choose from Menu
    Ading content to your account
  36. Show Alert
  37. Choose from Menu
    Contact info
  38. Show Alert
  39. Choose from Menu
    other
  40. Show Alert

Afficher en tant que code
Bêta

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

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité