ShareShortcuts

Login System V2.1

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

williamf
„Login System V2.1“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit williamf die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
44K
Gesichert
1
Aktionen
40
Kategorie
API
Version
2.1
Sprache
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.

Neue Funktionen

Version 2.1

+Minor bug fix. +Icon change.

Versionsverlauf
2.1 5. Feb 2022

+Minor bug fix. +Icon change.

2.0 5. Feb 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. Feb 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. Feb 2022

$

1.0 4. Feb 2022

First release

Was er macht

40 Aktionen
  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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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]")
	}
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von williamf

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung